vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

v-select doesn't show the 'No data available' tile when items is empty

Open KaelWD opened this issue 9 years ago • 11 comments

Steps to reproduce

Open the select

Versions

v0.16.3

What is expected ?

A disabled tile should be shown with the text 'No data available'

What is actually happening ?

No menu is shown at all

Reproduction Link

https://codepen.io/anon/pen/bovVOO?editors=1010

KaelWD avatar Oct 08 '17 09:10 KaelWD

v0.17.3 also has this bug, not yet fixed

guanxudong avatar Dec 04 '17 08:12 guanxudong

The fix for this was reverted in c89ac1034f720d2483fb331412b6331f3f24fdf0

KaelWD avatar Dec 05 '17 11:12 KaelWD

Can this be fixed by changing the display logic to something like this?

  menuIsVisible () {
      return this.menuIsActive &&
        (!this.isAutocomplete || this.computedItems.length > 0) &&
        (!this.isAnyValueAllowed || this.filteredItems.length > 0)
    },

From what I could see, the reason that the fix was reverted (https://github.com/vuetifyjs/vuetify/commit/c89ac1034f720d2483fb331412b6331f3f24fdf0) was specific to autocomplete selects.

sindrepm avatar Jan 05 '18 08:01 sindrepm

I'm still having this problem in 0.17.6 where selects with and without autocomplete don't show No Data Available when the items array is empty.

flybayer avatar Jan 05 '18 14:01 flybayer

Same problem here in v1.0.0-beta.5. The no-data scope don't shows up when the items attribute is empty ([]).

lcdss avatar Jan 29 '18 02:01 lcdss

Thank god I found this, I thought I had the wrong usage.

wildan2711 avatar Feb 05 '18 07:02 wildan2711

Same problem in v1.0.0-beta.5, specifically with async autocomplete. Searching with no results shows nothing. Once a result is finally hit, it will show a 'No Data Available,' but this shows immediately and not only once the search has been complete. Also, it does not use the no-data slot.

https://codepen.io/anon/pen/BYLZWE?&editors=101

samuelcolburn avatar Feb 06 '18 18:02 samuelcolburn

Hey guys, is there any workaround for this issue, or plan to either fix or alternatively remove no-data slot from the documentation?

kindofone avatar May 02 '18 12:05 kindofone

This seems to have been fixed in 1.1: https://codepen.io/anon/pen/VxBaWy?editors=1010

KaelWD avatar May 14 '18 13:05 KaelWD

item = [0, 1, 2]; The label is empty if the value is 0

do-web avatar Jun 19 '18 17:06 do-web

Open a new issue please, that's got nothing to do with this.

KaelWD avatar Jun 19 '18 17:06 KaelWD