You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use a ref with MenuList, but after adding the ref a lot of functionality stopped working, such as the up/down arrows:
MenuList.jsx:62 Uncaught TypeError: Cannot read properties of undefined (reading 'firstChild')
at moveFocus (MenuList.jsx:62:32)
at HTMLUListElement.handleKeyDown [as $$keydown] (MenuList.jsx:150:13)
After doing some debugging, I found that the issue is the use of {...other} spread makes the props.ref override the listRef. I think a solution could be to add "ref" into the splitProps call.
I haven't checked if other components have similar issues.
The text was updated successfully, but these errors were encountered:
I wanted to use a ref with
MenuList
, but after adding the ref a lot of functionality stopped working, such as the up/down arrows:After doing some debugging, I found that the issue is the use of
{...other}
spread makes theprops.ref
override thelistRef
. I think a solution could be to add"ref"
into thesplitProps
call.I haven't checked if other components have similar issues.
The text was updated successfully, but these errors were encountered: