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
Describe the bug selectable-search-input is a controlled input and doesn't allow manual updates to the current value from the outside (uncontrolled way) for example with Formik's setFieldValue. I think most other ui-kit components allow this behavior but not this component.
To Reproduce
I'm using the component in this way:
The user changes the value of the component and hit Enter. the value of the input is then put in the URL to maintain the state across refresh and also page changes
Once the page load, then within a useEffect, I try to get the value of the input from the URL (previous step) and use setFieldValue from Formik to update the current value of the input, however I don't have access to the value of the input from the outside, I only have access to the default value which is not useful after the rendering is done.
This means after refresh, the URL has the correct value but the input is empty which is misleading for the user.
Expected behavior
This component should allow modifying its current value from the outside like other ui-kit components (uncontrolled component)
The text was updated successfully, but these errors were encountered:
Describe the bug
selectable-search-input is a controlled input and doesn't allow manual updates to the current value from the outside (uncontrolled way) for example with Formik's
setFieldValue
. I think most other ui-kit components allow this behavior but not this component.To Reproduce
I'm using the component in this way:
useEffect
, I try to get the value of the input from the URL (previous step) and usesetFieldValue
from Formik to update the current value of the input, however I don't have access to the value of the input from the outside, I only have access to the default value which is not useful after the rendering is done.Expected behavior
This component should allow modifying its current value from the outside like other ui-kit components (uncontrolled component)
The text was updated successfully, but these errors were encountered: