Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Commit 3d64c38

Browse files
author
Ken Fehling
committed
Put close() at beginning of autoClose
1 parent d4baea1 commit 3d64c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ var Swipeout = React.createClass({
197197

198198
// close swipeout on button press
199199
, _autoClose: function(btn) {
200+
if (this.state.autoClose) this._close()
200201
var onPress = btn.onPress
201202
if (onPress) onPress()
202-
if (this.state.autoClose) this._close()
203203
}
204204
, _close: function() {
205205
this._tweenContent('contentPos', 0)

0 commit comments

Comments
 (0)