Skip to content

Commit

Permalink
fix(transition): respect duration setting even when it is 0 (#11967)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost authored Sep 20, 2024
1 parent a2f6ede commit f927a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/components/Transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function whenTransitionEnds(
}
}

if (explicitTimeout) {
if (explicitTimeout != null) {
return setTimeout(resolveIfNotStale, explicitTimeout)
}

Expand Down

0 comments on commit f927a4a

Please sign in to comment.