We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12255c9 commit f455870Copy full SHA for f455870
1 file changed
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