Skip to content

Commit 61a4e05

Browse files
committed
[fixed] Ensure ignoreBlur is not cleared prematurely (fixes reactjs#153)
1 parent c1ae4ea commit 61a4e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ let Autocomplete = React.createClass({
256256
}, () => {
257257
this.props.onSelect(value, item)
258258
this.refs.input.focus()
259-
this.setIgnoreBlur(false)
260259
})
261260
},
262261

@@ -298,6 +297,7 @@ let Autocomplete = React.createClass({
298297

299298
handleInputFocus () {
300299
if (this._ignoreBlur)
300+
this.setIgnoreBlur(false)
301301
return
302302
// We don't want `selectItemFromMouse` to trigger when
303303
// the user clicks into the input to focus it, so set this

0 commit comments

Comments
 (0)