ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

[ic-select] - able to select "no options found" entry

Open ad9242 opened this issue 1 year ago • 1 comments

Summary of the bug

With an ic-select with no options set, it is possible to select the "No options found" entry in the popup menu & the value is then set in the input field:

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Go to this stackblitz example
  2. Click on the ic-select
  3. Click on "no options found" option
  4. See the error - the value is updated

📸 Screenshots or code

image

🧐 Expected behaviour

the option should not be selectable

📝 Acceptance Criteria

If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

Given an ic-select with no options When the "no options found" entry is selected Then the value in the input field should not update

Additional info

ad9242 avatar Sep 06 '24 07:09 ad9242

only affects non-searchable

ad9242 avatar Sep 06 '24 08:09 ad9242