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

Select: Editable Dropdown search not working as expected #7026

Closed
4 tasks
akshayaqburst opened this issue Dec 30, 2024 · 0 comments · Fixed by #7027
Closed
4 tasks

Select: Editable Dropdown search not working as expected #7026

akshayaqburst opened this issue Dec 30, 2024 · 0 comments · Fixed by #7027
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@akshayaqburst
Copy link
Contributor

Describe the bug

Select: 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.`

` The attached video is from primereact but this issue exist in primevue as well.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/5bd7ojvx?file=src%2FApp.vue

Environment

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

Vue version

3.x.x

PrimeVue version

4.x.x

Node version

18.x.x

Browser(s)

No response

Steps to reproduce the behavior

Go to https://stackblitz.com/edit/5bd7ojvx?file=src%2FApp.vue
Search for 225.
'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 30, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working 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 30, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.6 milestone Dec 30, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Dec 30, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Dec 30, 2024
tugcekucukoglu added a commit that referenced this issue Dec 30, 2024
fix: #7026, Select: Editable Dropdown search not working as expected
@github-project-automation github-project-automation bot moved this from Review to Done in PrimeVue Dec 30, 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 bug related to a specific component. Something about the component is not working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants