kbss-cvut/s-forms

Values in typeahead are dissapearing from the dropdown in storybook

Closed this issue · 2 comments

blcham commented

image

It behaves as follows:

  • when I select 3 ---> 0 is missing
  • when I select 4 ---> 0,1 is missing
  • when I select "Not allowed" ---> 0,1,2 is missing

Tested on:
https://deploy-preview-217--s-forms-kbss.netlify.app/?path=/story/stories-forms--tourist-destination-form-2&globals=locale:cs;timeOut:200

Seems that this issue was also in PR #203. Storybook preview

Might be related to the form json.

Also, in current storybook preview - storybook - the issue is even weirder. The clicking does not always select the value. That might be connected to the migration to React 18 and react-select from v3 to v5.

So to summarize:
In s-forms v0.4.1 (storybook)

  • can normally select value, but other select options disappear in specific scenarios (test value 3 clicked => accepted value option disappears)

In s-forms v0.6.4

  • can normally select value, but other select options disappear in specific scenarios (mentioned in the first comment in this issue)

In s-forms v0.7.0

  • only some clicks result in selecting the option
  • when selection happens, other select options dissapear as in v0.6.4
blcham commented

Closing, solved by #232