DigitalRiver / react-atlas

Composable React components with CSS Modules.
http://digitalriver.github.io/react-atlas/
MIT License
38 stars 25 forks source link

Dropdown: Page scrolls with up or down keypress #816

Closed Darper closed 6 years ago

Darper commented 6 years ago

Expand non-filterable Dropdown, hit up or down to scroll through the list.

Expected result: Page doesn't scroll Actual result: Page scrolls

Missing e.preventDefault() after if else check on line 442. Include key check on line 442 to make sure preventDefault() only fires if up, down, or Enter are pressed.