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

filterMatchMode option is ignored in MultiSelect #2162

Closed
barryp opened this issue Feb 14, 2022 · 0 comments
Closed

filterMatchMode option is ignored in MultiSelect #2162

barryp opened this issue Feb 14, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@barryp
Copy link

barryp commented Feb 14, 2022

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

Current behavior

When creating a MultiSelect component with filterMatchMode="startsWith", that option is ignored
and it's actually filtering with "contains"

A similar bug was fixed here #1496 for the Dropdown component

See primevue/src/components/multiselect/MultiSelect.vue around line 614 for the hardcoded 'contains'

Expected behavior
Filtering should only return items that begin with the typed input, and not return items that contain
the typed input elsewhere in the item.

Minimal reproduction of the problem with instructions
https://codesandbox.io/s/primevue-multiselect-bug-demo-gn0f9?file=/src/App.vue

Please tell us about your environment:

macOS, PhpStorm, yarn, nginx+php-fpm

  • Vue version: 3.2.31
  • PrimeVue version: 3.11.1
  • Browser: Firefox, Chrome
@tugcekucukoglu tugcekucukoglu added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Feb 16, 2022
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Mar 14, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.13.0 milestone Mar 14, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Mar 14, 2022
tugcekucukoglu added a commit that referenced this issue Mar 14, 2022
Fixed #2162 - filterMatchMode option is ignored in MultiSelect
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
None yet
Development

No branches or pull requests

2 participants