Floating UI: Memoize problematic downshift prop getters to prevent infinite loops #17007
Labels
component: combobox
component: dropdown
component: filterable-multiselect
component: multiselect
planning: umbrella
Umbrella issues, surfaced in Projects views
severity: 2
https://ibm.biz/carbon-severity
type: bug 🐛
There's a longstanding interop issue between floating ui and downshift where in certain cases when setting a
ref
an infinite loop can happen causing the component to crash.The solution is to memoize the result of downshift's
getMenuProps()
. We've already had to do this for two components, we should expand this solution out to all the rest of the downshift components.Tasks
The text was updated successfully, but these errors were encountered: