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: { 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;