day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
797 stars 146 forks source link

Keyboard and Mouse interactions do not converge in drop-down. #164

Open mrinalsaurabh opened 7 years ago

mrinalsaurabh commented 7 years ago
screen shot 2017-09-26 at 11 45 35 am

As you can see keyboard and mouse interactions are different. Mouse actually hovers, but keyboard movement selects. There is no way to change this behaviour by passing in an external function.

Issue in detail: If you use mouse to navigate, it'll show the highlighted menu item and won't trigger the on-click function until it is clicked. But if we use keyboard, it triggers the click event and doesn't behave like mouse click (ideally the event should be fired on pressing "enter" key). Two different pointers in one dropdown is a bad user experience and they should actually be one interaction.