attempt to fix test
This commit is contained in:
parent
bc55af9165
commit
166fa464a8
|
@ -80,8 +80,8 @@ export const vTooltip = {
|
||||||
});
|
});
|
||||||
|
|
||||||
src.addEventListener(start, () => {
|
src.addEventListener(start, () => {
|
||||||
window.clearTimeout(self.showTimer);
|
if (self.showTimer != null) window.clearTimeout(self.showTimer);
|
||||||
window.clearTimeout(self.hideTimer);
|
if (self.hideTimer != null) window.clearTimeout(self.hideTimer);
|
||||||
if (delay === 0) {
|
if (delay === 0) {
|
||||||
self.show();
|
self.show();
|
||||||
} else {
|
} else {
|
||||||
|
@ -90,8 +90,8 @@ export const vTooltip = {
|
||||||
}, { passive: true });
|
}, { passive: true });
|
||||||
|
|
||||||
src.addEventListener(end, () => {
|
src.addEventListener(end, () => {
|
||||||
window.clearTimeout(self.showTimer);
|
if (self.showTimer != null) window.clearTimeout(self.showTimer);
|
||||||
window.clearTimeout(self.hideTimer);
|
if (self.hideTimer != null) window.clearTimeout(self.hideTimer);
|
||||||
if (delay === 0) {
|
if (delay === 0) {
|
||||||
self.close();
|
self.close();
|
||||||
} else {
|
} else {
|
||||||
|
@ -100,7 +100,7 @@ export const vTooltip = {
|
||||||
}, { passive: true });
|
}, { passive: true });
|
||||||
|
|
||||||
src.addEventListener('click', () => {
|
src.addEventListener('click', () => {
|
||||||
window.clearTimeout(self.showTimer);
|
if (self.showTimer != null) window.clearTimeout(self.showTimer);
|
||||||
self.close();
|
self.close();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -114,6 +114,6 @@ export const vTooltip = {
|
||||||
async unmounted(src) {
|
async unmounted(src) {
|
||||||
//@ts-expect-error HTMLElementにプロパティを追加している
|
//@ts-expect-error HTMLElementにプロパティを追加している
|
||||||
const self = src._tooltipDirective_;
|
const self = src._tooltipDirective_;
|
||||||
window.clearInterval(self.checkTimer);
|
if (self.checkTimer != null) window.clearInterval(self.checkTimer);
|
||||||
},
|
},
|
||||||
} satisfies VTooltip as VTooltip;
|
} satisfies VTooltip as VTooltip;
|
||||||
|
|
Loading…
Reference in a new issue