From e7f419afecd4c3398d9fbb614e5f31762dc6cb34 Mon Sep 17 00:00:00 2001 From: Sarthak Chowdhary Date: Sun, 3 Nov 2019 00:24:48 +0530 Subject: [PATCH] renamed handleClick to handleMouseDown --- packages/material-ui/src/Select/SelectInput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material-ui/src/Select/SelectInput.js b/packages/material-ui/src/Select/SelectInput.js index 5653d7468369e6..d74958eac39eff 100644 --- a/packages/material-ui/src/Select/SelectInput.js +++ b/packages/material-ui/src/Select/SelectInput.js @@ -123,7 +123,7 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) { } }; - const handleClick = event => { + const handleMouseDown = event => { update(true, event); }; @@ -322,7 +322,7 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) { aria-labelledby={`${labelId || ''} ${buttonId || ''}`} aria-haspopup="listbox" onKeyDown={handleKeyDown} - onMouseDown={disabled || readOnly ? null : handleClick} + onMouseDown={disabled || readOnly ? null : handleMouseDown} onBlur={handleBlur} onFocus={onFocus} {...SelectDisplayProps}