-
Notifications
You must be signed in to change notification settings - Fork 92
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
Tag search does not work anymore #3662
Comments
Workaround:options-filter="() => true" Can be used to remove the filter. Optimal solutionBut of course it would be nice to have the filter apply after a potential search. Other solutionAnother option would be to change the default filter to not filter when a search is performed if that would work: optionsFilter: {
type: Function,
default: (_element, index) => index < 5 || this.search !== '',
}, |
duplicate of nextcloud/server#34395 ? |
nextcloud/server#36152 should be a duplicate of the server ticket. |
By previous design in #2973 and #2990 Since filtering is handled by the lib component, for NcSelectTags the best option is probably to use the https://vue-select.org/api/props.html#filter prop to truncate to 5 after the filtering logic Should we do NcMultiselectTags as well @nickvergessen? |
Since it's deprecated we could also skip it and just ask to migrate to the new component. |
Fixed in #3747 |
Ref nextcloud/server#36152
Steps to reproduce
test-1
untiltest-10
test-6
and try to pick it.Expected
Option is displayed
Actual
The result list is empty
Guess
The problem is that the custom filter is applied before the search:
https://github.com/nextcloud/nextcloud-vue/blob/4df172ae3869cec3733daa207308f6cf701aedbc/src/components/NcMultiselectTags/NcMultiselectTags.vue#L200-L205
https://github.com/nextcloud/nextcloud-vue/blob/84e7175ac2fd48c578187ae9de496ca3cbd498ac/src/components/NcSelectTags/NcSelectTags.vue#L261-L266
So we proceed with 5 items (default filter) into the search and then have no results left.
The text was updated successfully, but these errors were encountered: