Is there any way to catch keyboard events in a DisclosureButton? By default, it captures the Enter and Spacebar to open/close the Disclosure, however, I have an input field that is occasionally used in the DisclosureButton, but whenever I press Spacebar or Enter, those the disclosure opens/closes, but the keyboard events aren't passed to the input.
I'm able to workaround by adding a disable to the DisclosureButton when I'm editing the input - but I was wondering if there was any other way? Or, is this just an unsupported, breaking functionality I'm trying to add?
It's just a hacked prototype right now, so not a big deal, but I'm curious if there is another way around this.
Is there any way to catch keyboard events in a
DisclosureButton
? By default, it captures the Enter and Spacebar to open/close the Disclosure, however, I have aninput
field that is occasionally used in theDisclosureButton
, but whenever I press Spacebar or Enter, those the disclosure opens/closes, but the keyboard events aren't passed to the input.I'm able to workaround by adding a
disable
to theDisclosureButton
when I'm editing theinput
- but I was wondering if there was any other way? Or, is this just an unsupported, breaking functionality I'm trying to add?It's just a hacked prototype right now, so not a big deal, but I'm curious if there is another way around this.