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

View File

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