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 am trying to use useCombobox with custom Popover and it throws an error when running this ariaHideOutside. The Popover ref becomes available later, so it make sense to validate if all refs are available.
When enabling strict mode in TS it definitely hints that ariaHideOutside wants all elements to be available
🤔 Expected Behavior?
useCombobox don't throw an error and runs ariaHideOutside once refs become available.
Provide a general summary of the issue here
I am trying to use
useCombobox
with custom Popover and it throws an error when running this ariaHideOutside. The Popover ref becomes available later, so it make sense to validate if all refs are available.When enabling strict mode in TS it definitely hints that ariaHideOutside wants all elements to be available
🤔 Expected Behavior?
useCombobox don't throw an error and runs
ariaHideOutside
once refs become available.😯 Current Behavior
It throws an error:
💁 Possible Solution
Validate if refs together with the state.open.
🔦 Context
No response
🖥️ Steps to Reproduce
https://codesandbox.io/s/aria-mui-popover-forked-cyh3xq?file=/src/MuiAutocomplete.tsx
Version
latest
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac OS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: