You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In some cases Full Swipe with ≤2 children cases an error:
_this.trailingFullSwipeAction is not a function
TypeError: _this.trailingFullSwipeAction is not a function
at SwipeableListItem.eval [as handleDragEnd] (webpack://react-swipeable-list-example/../src/SwipeableListItem.js?:328:19)
at eval (webpack://react-swipeable-list-example/../src/SwipeableListItem.js?:174:13)
To Reproduce
Create a list of TrailingActions with 'null' as the last child:
Hi,
Thanks for the info. Got a question - why do you want to put something else than SwipeAction inside the TrailingActions?
I would like to understand the usecase.
Describe the bug
In some cases Full Swipe with ≤2 children cases an error:
To Reproduce
Create a list of TrailingActions with 'null' as the last child:
Expected behavior
No error for cases if some of TrailingActions's children is not valid React element.
Desktop (please complete the following information):
Additional context
How to fix: count valid react children before maping:
The text was updated successfully, but these errors were encountered: