Fix some typos introduced during migration
Should use hideHandler instead of showHandler for mouseleave And another typo in gr-button Change-Id: I4d239279ce3b0828f8ff6ea519111183ea571009
This commit is contained in:
@@ -73,7 +73,7 @@ export class GrButton extends LegacyElementMixin(
|
||||
}
|
||||
|
||||
@property({
|
||||
computed: 'computeAriaDisable(disabled, loading)',
|
||||
computed: 'computeAriaDisabled(disabled, loading)',
|
||||
reflectToAttribute: true,
|
||||
type: Boolean,
|
||||
})
|
||||
|
||||
@@ -101,7 +101,7 @@ export const TooltipMixin = dedupingMixin(
|
||||
@observe('hasTooltip')
|
||||
_setupTooltipListeners() {
|
||||
if (!this.mouseenterHandler) {
|
||||
this.mouseenterHandler = () => this._handleShowTooltip();
|
||||
this.mouseenterHandler = this.showHandler;
|
||||
}
|
||||
|
||||
if (!this.hasTooltip) {
|
||||
@@ -151,7 +151,7 @@ export const TooltipMixin = dedupingMixin(
|
||||
|
||||
this._tooltip = tooltip;
|
||||
window.addEventListener('scroll', this.windowScrollHandler);
|
||||
this.addEventListener('mouseleave', this.showHandler);
|
||||
this.addEventListener('mouseleave', this.hideHandler);
|
||||
this.addEventListener('click', this.hideHandler);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user