-
-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Labels
status: waiting for authorIssue with insufficient informationIssue with insufficient information
Description
event.nativeEvent
is missing an undefined check
Runtime Error
TypeError: Cannot read properties of undefined (reading 'nativeEvent')
const openEventType = openEvent?.type;
const nextOpen = !(open && toggle && (openEvent && stickIfOpen ? openEventType === 'click' || openEventType === 'mousedown' || openEventType === 'keydown' || openEventType === 'keyup' : true));
onOpenChange(nextOpen, event.nativeEvent, 'click');
},
onKeyDown() {
at onClick in node_modules/@base-ui-components/react/esm/floating-ui-react/hooks/useClick.js:60:36
at unknown in node_modules/@base-ui-components/react/esm/floating-ui-react/hooks/useInteractions.js:78:52
at outputProps.<computed> in node_modules/@base-ui-components/react/esm/floating-ui-react/hooks/useInteractions.js:78:42
at onClick in node_modules/@base-ui-components/react/esm/use-button/useButton.js:62:9
at onClick in src/components/retro/Button.tsx:46:32
at executeDispatch in node_modules/react-dom/cjs/react-dom-client.development.js:16368:9
at runWithFiberInDEV in node_modules/react-dom/cjs/react-dom-client.development.js:1519:30
at processDispatchQueue in node_modules/react-dom/cjs/react-dom-client.development.js:16418:19
at unknown in node_modules/react-dom/cjs/react-dom-client.development.js:17016:9
Metadata
Metadata
Assignees
Labels
status: waiting for authorIssue with insufficient informationIssue with insufficient information
Projects
Status
No status