-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Patch for Chrome 105 bug concerning sticky positioning
The latest release of Chrome (105 and above) contains a bug that causes the page to crash when using sticky positioning. This affects React Spectrum TableView with checkbox selection and scrolling. React Spectrum has released a patch to temporarily remove the sticky positioning from TableView in affected versions of Chrome. Once Chrome releases a fix, we will re-instate sticky positioning. ** Please note this only affects TableViews with selection enabled.
Options for teams to fix:
Upgrade to @adobe/react-spectrum@3.21.2 to pull the temporary fix which disables the sticky positioning for Chrome v105 only.
If you cannot update all React Spectrum components, you can update just TableView using package manager resolutions/overrides.
"resolutions": {
"@react-spectrum/table": "3.3.2"
}
or
"overrides": {
"@react-spectrum/table": "3.3.2",
"@react-stately/layout": "3.7.1"
}
Turn off sticky positioning for all browsers (easiest)
- Run
yarn add patch-package –dev
- Edit node_modules/@react-stately/layout/dist/module.js
- Find instances of
isSticky =
and comment out. - Run
yarn patch-package @react-stately/layout
Turn off sticky positioning for Chrome v105+ only Please refer to our PR for the code changes needed.