vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] VDataTable with all items filtered out does not display 'no-results-text'

Open dsanders11 opened this issue 7 years ago • 3 comments

Versions and Environment

Vuetify: 2.0.2 Vue: 2.6.10 Browsers: Chrome 75.0.3770.142 OS: Mac OS 10.14.5

Steps to reproduce

  1. Use filter: () => false for a header

Expected Behavior

Since all results are filtered out, 'no-results-text' should be displayed

Actual Behavior

Table displays no rows

Reproduction Link

https://codepen.io/anon/pen/MNJypL

Other comments

This behavior is especially inconsistent if you have both filters and and search available on a table, as when there is a search query 'no-results-text' will be displayed when all items are filtered out, but with no search query, nothing is displayed.

dsanders11 avatar Jul 28 '19 23:07 dsanders11

Hi, im having a similar issue calling the v-slot:no-results.

https://codepen.io/gsmitto/pen/EqvaGX

gsmitto avatar Aug 01 '19 15:08 gsmitto

@gsmitto unrelated. response in discord.

MajesticPotatoe avatar Aug 01 '19 16:08 MajesticPotatoe

Hi, im having a similar issue calling the v-slot:no-results.

https://codepen.io/gsmitto/pen/EqvaGX

Corrected and working! Thank @MajesticPotatoe

gsmitto avatar Aug 01 '19 17:08 gsmitto