Fixed Swipeable being able to be opened to the left when no right element is present.
This was caused by incorrectly set rightOffset, equal to 0 when no elements were present, even though it should've been set to rowWidth
Test plan
Open any swipeable example in the example app
Remove the renderRightActions prop
See how before this fix, Swipeable could've still been opened to the left, and now it can't be.
Description
Fixed
Swipeable
being able to be opened to the left when no right element is present. This was caused by incorrectly setrightOffset
, equal to0
when no elements were present, even though it should've been set torowWidth
Test plan
renderRightActions
propSwipeable
could've still been opened to the left, and now it can't be.