Skip to content
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

chore(deps): Upgrade React dependencies to v17 #1334

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

jstoffan
Copy link
Collaborator

Tested against our React viewers (CSV, ZIP) and the new React controls.

Copy link
Contributor

@ConradJChan ConradJChan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good


usePreventKey(buttonElRef, ['Enter', 'Space']);
if (key === 'Enter' || key === 'Space') {
event.stopPropagation();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉


// Allow the range input to handle its own left/right keydown events
if (key === 'ArrowLeft' || key === 'ArrowRight') {
event.stopPropagation(); // Prevents global key handling
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this comment be applied above to MediaToggle as well?

@jstoffan jstoffan marked this pull request as ready for review March 11, 2021 20:42
@jstoffan jstoffan requested a review from a team as a code owner March 11, 2021 20:42
@jstoffan jstoffan merged commit 5de1252 into box:master Mar 12, 2021
@jstoffan jstoffan deleted the upgrade-react branch March 12, 2021 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants