Skip to content

Commit 8b3be0f

Browse files
committed
chore: properly clear throttle
1 parent 01f5e6f commit 8b3be0f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/vuetify/src/util/helpers.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,11 @@ export function throttle<T extends (...args: any[]) => any> (
450450
}, delay)
451451
}
452452

453-
wrap.clear = () => clearTimeout(timeoutId)
453+
wrap.clear = () => {
454+
clearTimeout(timeoutId)
455+
lastExec = 0
456+
throttling = false
457+
}
454458
wrap.immediate = fn
455459
return wrap
456460
}

0 commit comments

Comments
 (0)