Skip to content

Commit

Permalink
Update Tooltip.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
RytisTarasevicius authored Jun 21, 2024
1 parent 280db1d commit f55cccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Tooltip/Tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
methods: {
onMouseEnter() {
if (this.timeoutId) clearTimeout(this.timeoutId)
if (this.timeoutId) clearTimeout(this.timeoutId);
this.timeoutId = setTimeout(() => {
this.show = true;
if (this.appendToBody) {
Expand All @@ -74,7 +74,7 @@
}, this.delay);
},
onMouseLeave() {
if (this.timeoutId) clearTimeout(this.timeoutId)
if (this.timeoutId) clearTimeout(this.timeoutId);
this.timeoutId = setTimeout(() => {
if (this.appendToBody) {
document.body.removeChild(this.$refs.label);
Expand Down

0 comments on commit f55cccf

Please sign in to comment.