Skip to content

Commit ad13dbf

Browse files
authored
Fix error: TypeError: i is not a function (#4204)
1 parent 0d5a190 commit ad13dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/alpinejs/src/directives/x-transition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, valu
173173
let carry = Promise.all([
174174
el._x_hidePromise,
175175
...(el._x_hideChildren || []).map(hideAfterChildren),
176-
]).then(([i]) => i())
176+
]).then(([i]) => i?.())
177177

178178
delete el._x_hidePromise
179179
delete el._x_hideChildren

0 commit comments

Comments
 (0)