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
Problem: as Combobox displayValue change, the input defaultValue also change.
From what I understand, displayValue is an arbitrary value that is used to map a value to a value used for presentation only.
The defaultValue should not change between renders.
What package within Headless UI are you using? What version of that package are you using?
Problem: as Combobox
displayValue
change, the inputdefaultValue
also change.From what I understand,
displayValue
is an arbitrary value that is used to map a value to a value used for presentation only.The
defaultValue
should not change between renders.What package within Headless UI are you using?
What version of that package are you using?
@headlessui/react@v1.7.18
What browser are you using?
Chrome, Firefox
Reproduction URL
https://codesandbox.io/p/devbox/inspiring-smoke-5w6ccj
This is the Combobox demo. What I've changed:
As you type in the input field, the
defaultValue
is changing to match the randomdisplayValue
.The text was updated successfully, but these errors were encountered: