Refactor the use of deprecated `onKeyPress`
Closed this issue ยท 2 comments
nataliepina commented
Description
We have uses of onKeyPress
in the application that need to be updated. It is used in the Clickable
, ButtonCard
, and TextInputWithBadges
components. Keydown is an alternative to keypress.
Resource for Keyboard Events: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
Resource for Keyboard Events in React: https://reactjs.org/docs/events.html#keyboard-events
Acceptance Criteria
Update anywhere that onKeyPress is used.
How to Contribute
Please review the contributing documentation beforehand.
Steps to Contribute:
- Fork the repository.
- Clone it to your local system.
- Create a new branch.
- Make your changes. Make sure that tests are still passing. To update snapshot tests, run
npm run test -- -u
and include the updated tests in your commit. - Commit your changes. When committing prefix your commit message with the appropriate conventional commit type. For example,
refactor: <component_name> tests
. - Push up your changes. In GitHub, click the compare & pull request button to begin drafting your pull request.
- Fill out the pull request form and attach the "ready for review" label when complete.
derekhassan commented
Hi @nataliepina, I'd love to grab this issue!
mstruebing commented
Hey, @derekhassan pleas do!
I've assigned you, if you need any further help don't hesitate to task. ๐