filterMatchMode option is ignored in MultiSelect #2162
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
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
The text was updated successfully, but these errors were encountered: