From 99ddcc003d38e180b36dbbe38b6ab00db89c1a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20B=C3=B6hm?= Date: Mon, 6 Nov 2017 11:14:48 +0100 Subject: [PATCH 1/2] [Select] Use onMouseDown as another opening event --- src/Select/SelectInput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Select/SelectInput.js b/src/Select/SelectInput.js index ee650093667d9f..e6225324330603 100644 --- a/src/Select/SelectInput.js +++ b/src/Select/SelectInput.js @@ -345,6 +345,7 @@ class SelectInput extends React.Component { onKeyDown={this.handleKeyDown} onBlur={this.handleBlur} onClick={disabled || readOnly ? null : this.handleClick} + onMouseDown={disabled || readOnly ? null : this.handleClick} onFocus={onFocus} > {display} From 9000299bf9f638a4ebe3af40617c86603ab88729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20B=C3=B6hm?= Date: Mon, 6 Nov 2017 11:32:13 +0100 Subject: [PATCH 2/2] [Select] Remove redundant onClick handler. --- src/Select/SelectInput.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Select/SelectInput.js b/src/Select/SelectInput.js index e6225324330603..6234c8e1749e1f 100644 --- a/src/Select/SelectInput.js +++ b/src/Select/SelectInput.js @@ -344,7 +344,6 @@ class SelectInput extends React.Component { aria-haspopup="true" onKeyDown={this.handleKeyDown} onBlur={this.handleBlur} - onClick={disabled || readOnly ? null : this.handleClick} onMouseDown={disabled || readOnly ? null : this.handleClick} onFocus={onFocus} >