File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ export class TooltipDirective extends DialogDirective {
5151 // tslint:disable-next-line:no-input-rename
5252 @Input ( "tooltip-type" ) tooltipType : "warning" | "error" | "" = "" ;
5353
54- @HostBinding ( "attr.aria-describedby" ) descriptorId : string ;
54+ @HostBinding ( "attr.aria-describedby" ) get descriptorId ( ) : string {
55+ return this . expanded ? this . dialogConfig . compID : null ;
56+ }
5557
5658 /**
5759 * Creates an instance of `TooltipDirective`.
@@ -73,6 +75,5 @@ export class TooltipDirective extends DialogDirective {
7375 this . dialogConfig . compID = "tooltip-" + TooltipDirective . tooltipCounter ;
7476 this . dialogConfig . content = this . ibmTooltip ;
7577 this . dialogConfig . type = this . tooltipType ;
76- this . descriptorId = this . dialogConfig . compID ;
7778 }
7879}
You can’t perform that action at this time.
0 commit comments