We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72cf7e0 commit acbc194Copy full SHA for acbc194
src/material/tooltip/tooltip.ts
@@ -550,7 +550,7 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
550
551
/** Binds the pointer events to the tooltip trigger. */
552
private _setupPointerEvents() {
553
- // Defer hooking up events if there's no message.
+ // Optimization: Defer hooking up events if there's no message or the tooltip is disabled.
554
if (this._disabled || !this.message || !this._viewInitialized ||
555
this._passiveListeners.size) {
556
return;
0 commit comments