Disabled reorg

pull/496/head
Cagatay Civici 2020-09-24 18:39:36 +03:00
parent 8411cd33d4
commit 8637737a3d
2 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,6 @@
export default { export default {
inheritAttrs: false, inheritAttrs: false,
props: { props: {
disabled: null,
checked: null checked: null
}, },
data() { data() {
@ -23,7 +22,7 @@ export default {
}, },
methods: { methods: {
onClick(event) { onClick(event) {
if (!this.disabled) { if (!this.$attrs.disabled) {
this.$emit('change', event); this.$emit('change', event);
this.$refs.input.focus(); this.$refs.input.focus();
} }

View File

@ -14,7 +14,6 @@ export default {
inheritAttrs: false, inheritAttrs: false,
props: { props: {
value: null, value: null,
disabled: null,
checked: null checked: null
}, },
data() { data() {
@ -24,7 +23,7 @@ export default {
}, },
methods: { methods: {
onClick(event) { onClick(event) {
if (!this.disabled) { if (!this.$attrs.disabled) {
this.$emit('change', { this.$emit('change', {
originalEvent: event, originalEvent: event,
data: this.value data: this.value