moreta / vue-search-select

A Vue.js search select component
https://vue-search-select.netlify.com
MIT License
404 stars 126 forks source link

is-disabled prop does not work properly #160

Closed bmalen closed 1 year ago

bmalen commented 2 years ago

is-disabled prop still allows selection if the user clicks the associated form input label.

Steps to reproduce:

<label for="foo">Foo</label>
<ModelListSelect :is-disabled="true" id="foo" v-model="foo" :list="list" option-value="value" option-text="text"></ModelListSelect>
  1. Click the label
  2. Press down arrow on the keyboard to highlight the desired item
  3. Press Enter

Tested in Chrome Version 98.0.4758.102 vue-search-select Version 2.9.5 Vue 2