Skip to content

Commit

Permalink
Fix error: TypeError: i is not a function (#4204)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed May 13, 2024
1 parent 0d5a190 commit ad13dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/alpinejs/src/directives/x-transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, valu
let carry = Promise.all([
el._x_hidePromise,
...(el._x_hideChildren || []).map(hideAfterChildren),
]).then(([i]) => i())
]).then(([i]) => i?.())

delete el._x_hidePromise
delete el._x_hideChildren
Expand Down

0 comments on commit ad13dbf

Please sign in to comment.