Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit dadd11d

Browse files
committed
Fixed #307: ignore blur on touch start.
1 parent 220044a commit dadd11d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Autocomplete.js

+1
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ class Autocomplete extends React.Component {
446446
return React.cloneElement(menu, {
447447
ref: e => this.refs.menu = e,
448448
// Ignore blur to prevent menu from de-rendering before we can process click
449+
onTouchStart: () => this.setIgnoreBlur(true),
449450
onMouseEnter: () => this.setIgnoreBlur(true),
450451
onMouseLeave: () => this.setIgnoreBlur(false),
451452
})

0 commit comments

Comments
 (0)