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