Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a value through Formik helpers in AutocompleteField is inconsistent #110

Closed
fbeceic opened this issue May 3, 2023 · 0 comments · Fixed by #111
Closed

Setting a value through Formik helpers in AutocompleteField is inconsistent #110

fbeceic opened this issue May 3, 2023 · 0 comments · Fixed by #111
Assignees
Labels
bug Something isn't working

Comments

@fbeceic
Copy link
Collaborator

fbeceic commented May 3, 2023

Basic information

  • Tiller version: 1.6.0
  • Module: selectors

Bug description

Setting a new value through Formik helpers for AutocompleteField doesn't work as expected when sendOptionValue is set to false. In this case, the value correctly changes in the end, but gets set incorrectly before that by setting the value as if the sendOptionValue prop is disabled. This behaviour should be consistent in its results when changing the value in order to correctly track the field values.

image

Expected behavior

The value doesn't change inconsistently and is always set as the sendOptionValue prop states. This way tracking the change of the field can be done correctly, without unexpected results.

Actual behavior

The value changes inconsistently when changing it through Formik helpers with sendOptionValue prop disabled.

@fbeceic fbeceic added the bug Something isn't working label May 3, 2023
@fbeceic fbeceic self-assigned this May 3, 2023
@fbeceic fbeceic changed the title Setting a value through Formik helpers in Autocomplete is inconsistent Setting a value through Formik helpers in AutocompleteField is inconsistent May 3, 2023
jtomic-croz pushed a commit that referenced this issue May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant