Skip to content

Commit

Permalink
upgrade @react-aria/selection to prevent a random error in running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezamirian committed Dec 9, 2024
1 parent 9399788 commit 282c59f
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 161 deletions.
12 changes: 6 additions & 6 deletions packages/jui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@
"@react-aria/checkbox": "~3.3.4",
"@react-aria/combobox": "^3.10.3",
"@react-aria/dialog": "~3.2.1",
"@react-aria/focus": "~3.18.1",
"@react-aria/i18n": "^3.12.1",
"@react-aria/interactions": "~3.22.1",
"@react-aria/focus": "~3.19.0",
"@react-aria/i18n": "^3.12.4",
"@react-aria/interactions": "~3.22.5",
"@react-aria/label": "~3.7.10",
"@react-aria/link": "~3.2.5",
"@react-aria/listbox": "~3.12.1",
"@react-aria/menu": "~3.14.1",
"@react-aria/overlays": "~3.23.1",
"@react-aria/progress": "~3.1.8",
"@react-aria/select": "~3.14.7",
"@react-aria/selection": "~3.18.1",
"@react-aria/selection": "~3.21.0",
"@react-aria/separator": "~3.1.7",
"@react-aria/tabs": "~3.1.5",
"@react-aria/tooltip": "~3.3.4",
"@react-aria/utils": "~3.25.1",
"@react-aria/virtualizer": "3.3.7",
"@react-aria/visually-hidden": "~3.8.14",
"@react-stately/collections": "~3.10.9",
"@react-stately/collections": "~3.12.0",
"@react-stately/combobox": "^3.9.2",
"@react-stately/layout": "3.4.4",
"@react-stately/list": "~3.10.7",
Expand All @@ -77,7 +77,7 @@
"@react-stately/utils": "~3.10.2",
"@react-stately/virtualizer": "~3.1.9",
"@react-types/menu": "~3.9.11",
"@react-types/shared": "~3.24.1",
"@react-types/shared": "~3.26.0",
"@swc/helpers": "~0.3.17",
"ramda": "~0.27.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/jui/src/Tree/TreeKeyboardDelegate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ export class TreeKeyboardDelegate<T> extends ListKeyboardDelegate<T> {
});
}

getKeyLeftOf(key: React.Key): React.Key {
getKeyLeftOf(key: React.Key): React.Key | null {
const item = this.collection.getItem(key);
return item?.parentKey ?? this.getKeyAbove(key);
}

getKeyRightOf(key: React.Key): React.Key {
getKeyRightOf(key: React.Key): React.Key | null {
return this.getKeyBelow(key);
}
}
Loading

0 comments on commit 282c59f

Please sign in to comment.