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
Fix swipeable swiping to left when no renderRightActions is set (#3145)
## Description
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.
0 commit comments