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

Commit cec5e98

Browse files
committed
Merge pull request #102 from kenfehling/master
Put close() at beginning of autoClose
2 parents d4baea1 + 3d64c38 commit cec5e98

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)