ui
ui copied to clipboard
Text input may need to prevent default/bubble
Expected Behavior
When interacting with input in Storybook sand box. Shortcut key of the parent page should not be triggered. For example, pressing "A" toggles the "action" section and "F" enters full screen.
Current Behavior
Pressing "A" shows the character A in the input graphics, and also toggles the action area.
Possible Solution
preventDefault
when input is focus
Steps to Reproduce
- Visit Sandbox page
- Click on the input box
- Press "A", observe that action section is toggled and A shows in the input graphics.
Environment
- version: e.g. 8.0.0
- Browser & Version: e.g. Chrome 67
- OS & Version: e.g. Ubuntu 18.04
- Running Example: url