Check for disabled
parent
2281caae8b
commit
66b6fcea43
|
@ -32,10 +32,12 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onClick(event) {
|
onClick(event) {
|
||||||
|
if (!this.disabled) {
|
||||||
this.$emit('click', event);
|
this.$emit('click', event);
|
||||||
this.$emit('input', !this.value);
|
this.$emit('input', !this.value);
|
||||||
this.$emit('change', event);
|
this.$emit('change', event);
|
||||||
this.$refs.input.focus();
|
this.$refs.input.focus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onFocus(event) {
|
onFocus(event) {
|
||||||
this.focused = true;
|
this.focused = true;
|
||||||
|
|
Loading…
Reference in New Issue