kopia lustrzana https://github.com/shoelace-style/shoelace
remove void
rodzic
7a77be017e
commit
1c36a7bcd4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue