-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STCOM-1179 BREAKING bump react to v18 (#2084)
Short version: use react v18, adjusting tests accordingly. Long version: * remove only in paneset test * Use a better test component name * fix paneset tests * remove console logging * try accordions in isolation * use BTNG in ExpandAll, await things in accordion test * accordions - ensure element focused before triggering key * store accordions in state of accordionSet * Use react state for registering accordions * async the keyboard trigger also. * leapfrog possibly pending state updates via setTimeout. Automated tests, u too fast! * track registered accordions in state * converge on focus in the popover tests * use flushSync with ExpandAllbutton event handler * return null if accordion is unregistered * remove the syncflush * sync-flush is needed in ExpandAll button * remove setTimeouts * remove commented code * remove unused import * cleanup * switch css units Co-authored-by: Zak Burke <zburke@ebsco.com>
- Loading branch information
Showing
15 changed files
with
219 additions
and
136 deletions.
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
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.