diff --git a/packages/shared/useThrottleFn/index.ts b/packages/shared/useThrottleFn/index.ts index d518158df65..a5d9c12c0ee 100644 --- a/packages/shared/useThrottleFn/index.ts +++ b/packages/shared/useThrottleFn/index.ts @@ -9,13 +9,13 @@ import { createFilterWrapper, throttleFilter } from '../utils' * to `callback` when the throttled-function is executed. * @param ms A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful. * - * @param [trailing=true] if true, call fn again after the time is up + * @param [trailing=false] if true, call fn again after the time is up * * @param [leading=true] if true, call fn on the leading edge of the ms timeout * * @return A new, throttled, function. */ -export function useThrottleFn(fn: T, ms: MaybeRef = 200, trailing = true, leading = true): T { +export function useThrottleFn(fn: T, ms: MaybeRef = 200, trailing = false, leading = true): T { return createFilterWrapper( throttleFilter(ms, trailing, leading), fn,