Space Button does not work on any input element passed in "trigger" prop
JafTan21 opened this issue · comments
Mir Tanvir Ahmed commented
I have a few tags in the trigger prop, input works for every other key except for "space" key
To Reproduce
use a input tag on trigger prop of the component
Expected behavior
Input should add space when space key is pressed like other keys of the keyboard
Sonin_Yevhen commented
I had the same problem.
Workaround that helped me:
onKeyPress={(e) => e.stopPropagation()}
- on my input
I hope it will save some time for someone with the same problem.