vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] Inconsistent checkbox state in dropdown menu of v-select

Open kanteankit opened this issue 8 years ago • 1 comments

Versions and Environment

Vuetify: 1.3.11 Vue: 2.5.17 Browsers: Chrome 70.0.3538.102 OS: Linux x86_64

Steps to reproduce

The codepen shows a dropdown made using v-select with multiple prop. Now, I want to limit the number of items the user can select (In the codepen the limit is 3).

  1. Open the dropdown and select any 3 items from the list. The items show up as selected
  2. Now select the 4th item by clicking on the checkbox and see the behaviour

Expected Behavior

It is expected that when the changeHandler is called and the item is popped out of the array, the checkbox will be un-selected and the item won't be added to the selected list

Actual Behavior

The item is not added to the list,but, the checkbox remains selected which is incorrect behaviour

Reproduction Link

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

kanteankit avatar Nov 28 '18 13:11 kanteankit

Use $nextTick. https://codepen.io/anon/pen/OrZJZZ?&editors=101

nekosaur avatar Jan 06 '19 11:01 nekosaur