Skip to content

Commit

Permalink
Sebastian review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 22, 2019
1 parent 58f66b9 commit 5018f21
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/material-ui/src/Select/Select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,16 @@ describe('<Select />', () => {
// this means the trigger is blurred immediately
const handleBlur = spy();
const { getByRole, getAllByRole, queryByRole } = render(
<Select onBlur={handleBlur} value="">
<Select
onBlur={handleBlur}
value=""
onMouseDown={event => {
// simulating certain platforms that focus on mousedown
if (event.defaultPrevented === false) {
event.currentTarget.focus();
}
}}
>
<MenuItem value="">none</MenuItem>
<MenuItem value={10}>Ten</MenuItem>
</Select>,
Expand Down

0 comments on commit 5018f21

Please sign in to comment.