We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24a2305 commit 90afe98Copy full SHA for 90afe98
components/SwipeRow.js
@@ -347,11 +347,15 @@ class SwipeRow extends Component {
347
event: e,
348
gestureState,
349
});
350
- this.handlePanResponderEnd(e, gestureState);
+
351
+ // If preventDefault() called on the event, do not handle responder end.
352
+ if (!e.defaultPrevented) {
353
+ this.handlePanResponderEnd(e, gestureState);
354
+ }
355
}
356
357
handlePanResponderEnd(e, gestureState) {
- /* PandEnd will reset the force-closing state when it's true. */
358
+ /* PanEnd will reset the force-closing state when it's true. */
359
if (this.isForceClosing) {
360
setTimeout(() => {
361
this.isForceClosing = false;
0 commit comments