riot-web/test/unit-tests/accessibility
R Midhun Suresh 0faf298e05
Fix React 18 strict mode breaking spotlight search
This code originally held an array of refs. But these refs were unset
just before sorting leading to errors.

For the fix, I've used a callback ref to add/remove the DOM elements
to/from the array in state. This way there's nothing that could possibly
mutate just before sort.
2024-11-13 00:28:32 +05:30
..
KeyboardShortcutUtils-test.ts
LandmarkNavigation-test.tsx
RovingTabIndex-test.tsx Fix React 18 strict mode breaking spotlight search 2024-11-13 00:28:32 +05:30