Select: Editable Dropdown search not working as expected #7026
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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
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.
The text was updated successfully, but these errors were encountered: