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

Dropdown: Editable Dropdown search not working as expected. #7527

Closed
akshayaqburst opened this issue Dec 26, 2024 · 0 comments · Fixed by #7528
Closed

Dropdown: Editable Dropdown search not working as expected. #7527

akshayaqburst opened this issue Dec 26, 2024 · 0 comments · Fixed by #7528
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@akshayaqburst
Copy link
Contributor

Describe the bug

Dropdown: Editable Dropdown search not working as expected.

In the video attached, when I search for 225, it highlights 225000 instead of 225. In case of a perfect match, I expect it to highlight that value, else it can search with other criterias.

Screen.Recording.2024-12-26.123048.mp4

Reproducer

https://stackblitz.com/edit/yxs5khtq?file=src%2FApp.jsx

System Information

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 4.10 GB / 7.47 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v14.21.3/bin/yarn
    npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm
  npmPackages:
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

  1. Go to https://stackblitz.com/edit/yxs5khtq?file=src%2FApp.jsx
  2. Search for 225.
  3. '225000' is highlighted instead of 225.

Expected behavior

Search should check for an exact match and else it should check for startsWith.

@akshayaqburst akshayaqburst added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 26, 2024
akshayaqburst pushed a commit to qburst/primereact_qb_43 that referenced this issue Dec 26, 2024
@melloware melloware added this to the 10.8.6 milestone Dec 26, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants