Check for disabled

pull/5/head
cagataycivici 2018-12-16 23:57:15 +03:00
parent 2281caae8b
commit 66b6fcea43
1 changed files with 6 additions and 4 deletions

View File

@ -32,10 +32,12 @@ export default {
},
methods: {
onClick(event) {
this.$emit('click', event);
this.$emit('input', !this.value);
this.$emit('change', event);
this.$refs.input.focus();
if (!this.disabled) {
this.$emit('click', event);
this.$emit('input', !this.value);
this.$emit('change', event);
this.$refs.input.focus();
}
},
onFocus(event) {
this.focused = true;