@@ -207,7 +207,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
207
207
@Input ( 'matTooltip' )
208
208
get message ( ) { return this . _message ; }
209
209
set message ( value : string ) {
210
- this . _ariaDescriber . removeDescription ( this . _elementRef . nativeElement , this . _message ) ;
210
+ this . _ariaDescriber . removeDescription ( this . _elementRef . nativeElement , this . _message , 'tooltip' ) ;
211
211
212
212
// If the message is not a string (e.g. number), convert it to a string and trim it.
213
213
// Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises
@@ -225,7 +225,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
225
225
// has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the
226
226
// issue by deferring the description by a tick so Angular has time to set the `aria-label`.
227
227
Promise . resolve ( ) . then ( ( ) => {
228
- this . _ariaDescriber . describe ( this . _elementRef . nativeElement , this . message ) ;
228
+ this . _ariaDescriber . describe ( this . _elementRef . nativeElement , this . message , 'tooltip' ) ;
229
229
} ) ;
230
230
} ) ;
231
231
}
@@ -332,7 +332,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
332
332
this . _destroyed . next ( ) ;
333
333
this . _destroyed . complete ( ) ;
334
334
335
- this . _ariaDescriber . removeDescription ( nativeElement , this . message ) ;
335
+ this . _ariaDescriber . removeDescription ( nativeElement , this . message , 'tooltip' ) ;
336
336
this . _focusMonitor . stopMonitoring ( nativeElement ) ;
337
337
}
338
338
0 commit comments