We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12255c9 commit 5ffc39bCopy full SHA for 5ffc39b
2 files changed
packages/react-sunbeam/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-sunbeam",
3
- "version": "2.0.0-beta.2",
+ "version": "2.0.0-beta.3",
4
"description": "Spatial navigation and focus management for React",
5
"keywords": [
6
"spatial-navigation",
packages/react-sunbeam/src/focus/FocusableNode.ts
@@ -31,7 +31,7 @@ export class FocusableNode implements IFocusableNode {
31
customGetPreferredChild?: CustomGetPreferredChildFn
32
lock: Direction[] | Direction | undefined
33
}) {
34
- focusKey = focusKey ?? `focusable:${randomId()}`
+ focusKey = focusKey || `focusable:${randomId()}`
35
this.focusKey = focusKey
36
this.path = [...parentPath, focusKey]
37
this.getBoundingBox = getBoundingBox
0 commit comments