Choices-js / Choices

A vanilla JS customisable select box/text input plugin ⚡️
https://choices-js.github.io/Choices/
MIT License
6.05k stars 597 forks source link

Bug after select (dropdown) search #1047

Open kkaragki opened 1 year ago

kkaragki commented 1 year ago

Describe the bug I use Choices.js select components inside a local project with Form.IO. I tried to use the search functionality of the control, but I found out a major bug. Let's say I type 2-3 letters of the thing that I search for. I scroll down to the searched results and all of a sudden, the searched results disappears and the whole list is attached again!

To Reproduce Steps to reproduce the behavior:

  1. Go to a 'mock' project that I created.
  2. Click either on select component inside the DataGrid or the below one.
  3. Type for example the value "CR". The component (correctly) finds all the cars that must be found.
  4. The moment I scroll down to the other searched options, the search ‘breaks’ and all cars are displayed all over again.
  5. See error.

Expected behavior The desired functionality is, of course, to keep the searched values on top of the list and not to be cleared after scrolling.

Desktop (please complete the following information):

surendhar1101 commented 2 months ago

i too have this problem