Skip to content

Commit

Permalink
renamed handleClick to handleMouseDown
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakC authored and oliviertassinari committed Nov 21, 2019
1 parent ecb84cf commit e7f419a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/Select/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const SelectInput = React.forwardRef(function SelectInput(props, ref) {
}
};

const handleClick = event => {
const handleMouseDown = event => {
update(true, event);
};

Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit e7f419a

Please sign in to comment.