RocketCommunicationsInc / astro

Astro UXDS is a collection of guidelines, patterns and components for designing space-based user interface applications.
https://astrouxds.com
Other
113 stars 25 forks source link

RuxInput and RuxTextarea not responding to backspace key presses #535

Closed EzraBrooks closed 2 years ago

EzraBrooks commented 2 years ago

I'm using @astrouxds/react, at the latest version, and I can type into text fields but cannot use the backspace key. Strangely, the delete key works. Am I doing something wrong, or is this broken?

micahjones13 commented 2 years ago

Hey @EzraBrooks, I'm so far unable to reproduce this issue. I've tried it out in this sandbox, https://codesandbox.io/s/hopeful-tamas-ptci99?file=/src/App.js - could you update that with an example of backspace not working if possible? Thanks!

EzraBrooks commented 2 years ago

I haven't been able to reproduce the issue in the sandbox yet. I was able to confirm in my application where I'm seeing the issue that the input is indeed receiving the keydown event with the backspace key.. the question is how it's getting intercepted before affecting the text. I will continue poking around and seeing if some other library I'm using is doing something sinister :smile:

EzraBrooks commented 2 years ago

It's definitely another library contaminating the global key handlers - react-flow-renderer. I'll open an issue there. Thanks for the quick response pushing me in the right direction.