Skip to content

Cannot read properties of undefined (reading 'hotkey') #126

@francesc79

Description

@francesc79

Describe the bug
When opening the page that uses @headless-tree/react, the application immediately throws a runtime error in the browser console:

Uncaught TypeError: Cannot read properties of undefined (reading 'hotkey')
at getDefaultLabel (@headless-tree_react.js?v=cc75ad49:37:44)
at AssistiveTreeDescription (@headless-tree_react.js?v=cc75ad49:56:171)
at react-stack-bottom-frame (react-dom_client.js?v=cc75ad49:17424:20)
at renderWithHooks (react-dom_client.js?v=cc75ad49:4206:24)
at updateFunctionComponent (react-dom_client.js?v=cc75ad49:6619:21)
at beginWork (react-dom_client.js?v=cc75ad49:7654:20)
at runWithFiberInDEV (react-dom_client.js?v=cc75ad49:1485:72)
at performUnitOfWork (react-dom_client.js?v=cc75ad49:10868:98)
at workLoopSync (react-dom_client.js?v=cc75ad49:10728:43)
at renderRootSync (react-dom_client.js?v=cc75ad49:10711:13)

To Reproduce
https://github.com/francesc79/test-mainmenu
npm i && npm run dev

Expected behavior
No error

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions