You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current doc of Vuetify 3, it says intersection: There is at least one match from the custom filter, and all columns match the custom key filters.
I am using default filter-mode which is intersection so the behavior seems to follow what the docs says.
However, in the doc of Vuetify2, it says intersection: There is at least one match from the default filter, AND all custom column filters match.
If I understand correctly, they are supposed to behave the same if I don't specify custom filter and let it use default filter.
One workaround is to use every for filter-mode, but I just want to know if the current behavior is intentional or not . If it is intentional it would be better if the documentation gets more clarification.
Actual Behavior
No item matches even when there are actually matches. In Vuetify2, they matches properly.
hitochan777
changed the title
[Bug Report][3.6.8] When all headers use custom filter no item matches
[Bug Report][3.6.8] No item matches when all headers use custom filter
Jun 8, 2024
When all columns use custom filter, have to use filter-mode="union" to match properly.
On the other hand, If at least one column don't use custom filter, use the default filter-mode which is intersection to match properly.
Quite frustrating when migrating from v2.
Environment
Vuetify Version: 3.6.8
Vue Version: 3.4.27
Browsers: Chrome 125.0.0.0
OS: Linux x86_64
Steps to reproduce
Use
filter
key for all headers in v-data-table.Expected Behavior
Items should match according to filter functions.
In the current doc of Vuetify 3, it says
intersection: There is at least one match from the custom filter, and all columns match the custom key filters.
I am using default filter-mode which is
intersection
so the behavior seems to follow what the docs says.However, in the doc of Vuetify2, it says
intersection: There is at least one match from the default filter, AND all custom column filters match.
If I understand correctly, they are supposed to behave the same if I don't specify custom filter and let it use default filter.
One workaround is to use
every
forfilter-mode
, but I just want to know if the current behavior is intentional or not . If it is intentional it would be better if the documentation gets more clarification.Actual Behavior
No item matches even when there are actually matches. In Vuetify2, they matches properly.
Reproduction Link
Vuetify2
Vuetify3
The text was updated successfully, but these errors were encountered: