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

[Bug Report][3.1.11] Table search not finding key values from objects #16999

Closed
webdevnerdstuff opened this issue Mar 24, 2023 · 0 comments
Closed
Labels
C: VDataTable VDatatable T: bug Functionality that does not work as intended/expected

Comments

@webdevnerdstuff
Copy link
Contributor

Environment

Vuetify Version: 3.1.11
Vue Version: 3.2.47
Browsers: Chrome 111.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

  1. In the header array, set one of the values to an object's key (an object within the original data set).
  2. Search "foo" in the v-text-field
  3. Notice it does not find the value that has been loaded into the table.

Expected Behavior

The search should find values in the table that have been set for the header key, even it is an object value.

Actual Behavior

It only searches the keys that are not an object value.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

I understand a filter can be used for added functionality here, but I think that is overkill when you don't need any custom logic or fancy filtering going on. Now if I wanted it to search another value in the object put into the key, that is a good use case for using a custom filter, as it's not loaded into the table. But the key that is loaded into the table, should be searchable without having to add extra logic for the search to be able to detect it. If this is by design, please change the title from Bug to Feature Request.

I did try setting the filter-keys to something like ['name', 'foo.bar'] but that does nothing as well. But without documentation on a lot of the filter items, it's hard to determine without looking into details of the vuetify source code to what it's doing. I have been able to get filter-keys to work on an autocomplete field (with some workarounds that might be needed due to a bug). But cannot get it to work the same on the data table.

@nekosaur nekosaur added T: bug Functionality that does not work as intended/expected C: VDataTable VDatatable and removed S: triage labels Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDataTable VDatatable T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

2 participants