Skip to content

[BUG] [Select] Search works strangely #502

@kevin-carangeot

Description

@kevin-carangeot

Context

The search checks whether the letters are present in the character string, but does not check whether they are consecutive letters.

Reproduce link

https://uikit.prestashop.com/?path=/docs/components-select--docs

Steps to Reproduce

  1. Set up Searchable to "true"
  2. write "ooooonnnnppp3"
  3. "Option 3" found because it contains "o" "n" "p" and "3"

Expected Behavior

Imagine I wrote 3 instead of 4, it should not return Option 3
Image

Current Behavior

Image

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions