Skip to content

Commit 591b328

Browse files
committed
use older syntax instead of .at()
Fixes: #1344
1 parent b4a4e0b commit 591b328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@headlessui-react/src/components/transitions/transition.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ let TransitionRoot = forwardRefWithAs(function Transition<
369369
}
370370

371371
// Track the changes
372-
if (changes.current.at(-1) !== show) {
372+
if (changes.current[changes.current.length - 1] !== show) {
373373
changes.current.push(show)
374374
setInitial(false)
375375
}

0 commit comments

Comments
 (0)