Skip to content

Commit f6f39ee

Browse files
authored
Chrome 105 sticky crashing pinned to v105 (#3575)
1 parent 2e96f3f commit f6f39ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-stately/layout/src/TableLayout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@ export class TableLayout<T> extends ListLayout<T> {
454454

455455
let isChrome105;
456456
if (window.navigator['userAgentData']) {
457-
isChrome105 = window.navigator['userAgentData']?.brands.some(b => b.brand === 'Chromium' && Number(b.version) >= 105);
457+
isChrome105 = window.navigator['userAgentData']?.brands.some(b => b.brand === 'Chromium' && Number(b.version) === 105);
458458
} else {
459459
let regex = /Chrome\/(\d+)/;
460460
let matches = regex.exec(window.navigator.userAgent);
461-
isChrome105 = matches && matches.length >= 2 && Number(matches[1]) >= 105;
461+
isChrome105 = matches && matches.length >= 2 && Number(matches[1]) === 105;
462462
}
463463

464464
return isChrome105;

0 commit comments

Comments
 (0)