Remove click listener if disabled
This commit is contained in:
parent
b90fda127d
commit
38776569ed
|
@ -15,7 +15,7 @@
|
|||
|
||||
/*Methods*/
|
||||
function settingOnClick() {
|
||||
|
||||
console.log("setting on click");
|
||||
}
|
||||
|
||||
const methods = { settingOnClick };
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="bd-setting-switch" :class="{'bd-disabled': disabled}">
|
||||
<div class="bd-title">
|
||||
<h3>{{setting.title || setting.text}}</h3>
|
||||
<label class="bd-switch-wrapper" @click="onClick">
|
||||
<label class="bd-switch-wrapper" @click="!disabled ? onClick() : null">
|
||||
<input type="checkbox" class="bd-switch-checkbox"/>
|
||||
<div class="bd-switch" :class="{'bd-checked': setting.checked}"/>
|
||||
</label>
|
||||
|
|
Loading…
Reference in New Issue