-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring to suppress eslint warnings jsx-a11y/click-events-have-key-events #3995
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran the code locally and everything worked as expected with no eslint warnings.
Nice work @christyjacob4
@christyjacob4 I see that you merged master in to this branch in order to resolve conflicts with Another option is to rebase your branch from master. The merge is totally fine, just want to let you know that rebasing is different option with different effects: https://git-scm.com/book/en/v2/Git-Branching-Rebasing The main difference is that rebasing results in a more uniform history with master and sibling branches created from the same master. |
@cpretzer Thanks a lot for the insight. I will keep that in mind from next time 👍 |
@christyjacob4 Thanks for working on this, |
@Pothulapati I didn't quite get you.. could you please repeat? |
@christyjacob4 Ah Sorry, Looked like the fix was to add a key event handler for every |
@Pothulapati I will send you a gif to make it clear. |
@Pothulapati @cpretzer Please take a look at this gif for more context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, Thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @christyjacob4 , looks good to me 👍
Before we merge, could you please remove the "jsx-a11y/click-events-have-key-events"
entry from .eslintrc
instead of setting it to 1?
@alpeb Thanks for noticing that. I will do that :) |
@alpeb I think the changes are ready :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @christyjacob4 , this looks good to me!
Have you already received some swag from us? If not, do you mind filling out this survey to get you some? 😉
@christyjacob4 Looks like we have merge conflicts again. :\ |
Upon enabling jsx-a11y/click-events-have-key-events flag in .eslintrc , a couple of warnings are raised because it is recommended to provide a onKeyPress, onKeyDown or onKeyUp event handler for every onClick event handler. The code has been refactored to follow the eslint spec. Fixes #3926 Signed-off-by: Christy Jacob <christyjacob4@gmail.com>
* During the review it was reuqested to remove the flag * The requested change has been done e Signed-off-by: Christy Jacob <christyjacob4@gmail.com>
@Pothulapati Its done :) |
Please review and merge #3974 before this.
Refactoring to suppress eslint warnings
Upon enabling jsx-a11y/click-events-have-key-events flag in .eslintrc , a couple of warnings are raised because it is recommended
to provide a onKeyPress, onKeyDown or onKeyUp event handler for every onClick event handler.
The code has been refactored to follow the eslint spec.
Fixes #3926
Signed-off-by: Christy Jacob christyjacob4@gmail.com