euvl / vue-js-toggle-button

:fish_cake: Vue.js 2 toggle / switch button - simple, pretty, customizable
http://vue-js-toggle-button.yev.io/
MIT License
934 stars 133 forks source link

Disabled doesn't work when in <label> #104

Open mikob opened 5 years ago

mikob commented 5 years ago

eg.

<label>
<toggle-button :disabled="true"> Something
</label>

is still toggleable.

euvl commented 5 years ago

you need to close </toggle-button>

mikob commented 5 years ago

That was just a transcribing error. The problem happens despite the closing tag (actually I have it self-closing). @euvl

euvl commented 5 years ago

Seems the issue might be that internally component uses "label" html element (don't ask me why i did it 2 years ago :D )