-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(react): support react 17 #1680
Open
anastasialanz
wants to merge
30
commits into
develop
Choose a base branch
from
fix--react-17-upgrade
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+440
−413
Open
Changes from 15 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ad9e4b0
feat(react): update to oficially support react 17
scurker d2a7ad1
add prop-types dependency
scurker f205cd4
fix combobox test
scurker 9eed663
update clickoutside listener
scurker f2afda7
test: switch to user-event for clicks in OptionsMenu test
anastasialanz 84323a0
test: typos in popover tests
anastasialanz b8e7c0c
test: failing test for popover bug
anastasialanz 89ab364
fix: revert click outside changes
anastasialanz 9b75a9c
fix: set capture on event listeners
anastasialanz 9f59231
fix: return if clicking on the target element
anastasialanz d147b85
test: update test for popover trigger
anastasialanz aaa242c
refactor: convert options menu item to a function component
anastasialanz 1ea1059
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz cda2956
refactor: convert options menu list to a function component
anastasialanz 098a995
refactor: convert options menu to a function component
anastasialanz 65d6ea2
test: add required onSelect prop to OptionsMenu test
anastasialanz 7158934
fix: linting errors for options menu item
anastasialanz 3ffc129
test: add onSelect prop to OptionsMenuList
anastasialanz d204969
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz fd74de7
test: add onSelect to options menu in top bar
anastasialanz 952d674
test: fix options menu item tests
anastasialanz bd25a61
fix: close the options menu if clicking on trigger
anastasialanz ede47b8
test: fix typescript triggerRef error
anastasialanz ab96270
docs: fix top bar options menu implementation
anastasialanz 3380ed1
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz 4e1abf8
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz f438804
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz 250db1f
fix: remove unneeded change
anastasialanz 9df13e6
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz 4e58005
Merge branch 'develop' into fix--react-17-upgrade
anastasialanz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -515,6 +515,9 @@ test('should prevent default with enter keypress and open listbox', () => { | |
// rtl doesn't let us mock preventDefault | ||
// see: https://github.com/testing-library/react-testing-library/issues/572 | ||
event.preventDefault = preventDefault; | ||
if (type === 'focus') { | ||
fireEvent.focusIn(combobox); | ||
} | ||
fireEvent(combobox, event); | ||
}; | ||
|
||
|
@@ -545,6 +548,9 @@ test('should not prevent default with enter keypress and closed listbox', () => | |
// rtl doesn't let us mock preventDefault | ||
// see: https://github.com/testing-library/react-testing-library/issues/572 | ||
event.preventDefault = preventDefault; | ||
if (type === 'focus') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From Jason:
|
||
fireEvent.focusIn(combobox); | ||
} | ||
fireEvent(combobox, event); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
These changes are recommended here https://legacy.reactjs.org/blog/2020/08/10/react-v17-rc.html#fixing-potential-issues
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.
We'll want to be sure we call this out in the release, might be good to tag folks in the slack channel. I don't think anyone should be relying on the capture vs bubble phase but you never know...