moroshko / react-autosuggest

WAI-ARIA compliant React autosuggest component
http://react-autosuggest.js.org
MIT License
5.97k stars 586 forks source link

event.preventDefault inside onSuggestionSelected not firing. #538

Open TheCodersPlayground opened 6 years ago

TheCodersPlayground commented 6 years ago

This is related to #10 and #503.

My use case is to differentiate between Ctrl + Click and Shift + Click and normal left click as each will have different effects. I want to keep the suggestion div open and prevent default operation on both Ctrl + Click and Shift + Click. Let me know if there is a way to achieve it or any work around will be appreciated as well.

gazpachu commented 6 years ago

@moroshko any idea about this? I'm displaying a no results found item that I don't want to be clickable and add the string to the input when clicked. Thanks!