We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vuetify Version: 3.8.0 Vue Version: 3.5.13 Browsers: Edge 134.0.0.0 OS: Mac OS 10.15.7
filter column by header
Crashing app
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered:
i don't know why but it keeps crashing until remove filter function defined in tableHeaders array
Sorry, something went wrong.
Found it: https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/composables/filter.tsx#L48
export const defaultFilter: FilterFunction = (value, query, item) => { if (value == null || query == null) return -1 value = value.toString().toLocaleLowerCase() query = query.toString().toLocaleLowerCase() const result = [] let idx = value.indexOf(query) while (~idx) { result.push([idx, idx + query.length] as const) idx = value.indexOf(query, idx + query.length) }
The query is an empty string and not null, causing an infinite loop here
// value.indexOf("", 0 + 0) idx = value.indexOf(query, idx + query.length)
The function has changed here: 9da6442#diff-3df71dcef30db080ec919186fd82f35bba0ccc01932ada675a01ad776ace1296
0a8de9b
KaelWD
No branches or pull requests
Environment
Vuetify Version: 3.8.0
Vue Version: 3.5.13
Browsers: Edge 134.0.0.0
OS: Mac OS 10.15.7
Steps to reproduce
Expected Behavior
filter column by header
Actual Behavior
Crashing app
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: