mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
remove void
This commit is contained in:
@@ -198,7 +198,7 @@ export default class SlTooltip extends LitElement {
|
||||
if (this.hasTrigger('hover')) {
|
||||
const delay = parseDuration(getComputedStyle(this).getPropertyValue('--show-delay'));
|
||||
clearTimeout(this.hoverTimeout);
|
||||
this.hoverTimeout = window.setTimeout(() => void this.show(), delay);
|
||||
this.hoverTimeout = window.setTimeout(() => this.show(), delay);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ export default class SlTooltip extends LitElement {
|
||||
if (this.hasTrigger('hover')) {
|
||||
const delay = parseDuration(getComputedStyle(this).getPropertyValue('--hide-delay'));
|
||||
clearTimeout(this.hoverTimeout);
|
||||
this.hoverTimeout = window.setTimeout(() => void this.hide(), delay);
|
||||
this.hoverTimeout = window.setTimeout(() => this.hide(), delay);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user