From 1be45eaad08a2341e81a44299f87d5aea9fd1bfa Mon Sep 17 00:00:00 2001 From: Samuel Meyers Date: Mon, 11 Mar 2019 15:51:08 -0500 Subject: [PATCH] [fixed] #377: Enable blur if touch part of scroll --- lib/Autocomplete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Autocomplete.js b/lib/Autocomplete.js index 1658c8bb..5741984f 100644 --- a/lib/Autocomplete.js +++ b/lib/Autocomplete.js @@ -478,6 +478,7 @@ class Autocomplete extends React.Component { ref: e => this.refs.menu = e, // Ignore blur to prevent menu from de-rendering before we can process click onTouchStart: () => this.setIgnoreBlur(true), + onTouchMove: () => this.setIgnoreBlur(false), onMouseEnter: () => this.setIgnoreBlur(true), onMouseLeave: () => this.setIgnoreBlur(false), })