Skip to content

Commit

Permalink
fix: SingeSelect/MultiSelect webhook trigger (#2309)
Browse files Browse the repository at this point in the history
* fix: SingleSelect webhook trigger

Signed-off-by: mertmit <mertmit99@gmail.com>

* fix: MultiSelect webhook trigger

Signed-off-by: mertmit <mertmit99@gmail.com>
  • Loading branch information
mertmit committed Jun 13, 2022
1 parent 5ca470e commit a0ce1eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -86,6 +86,7 @@
:is-form="isForm"
:column="column"
v-on="parentListeners"
@input="$emit('save')"
/>

<json-editable-cell
Expand All @@ -101,6 +102,7 @@
v-model="localState"
:column="column"
v-on="parentListeners"
@input="$emit('save')"
/>
<set-list-cell
v-else-if="isSet"
Expand Down Expand Up @@ -197,9 +199,9 @@ export default {
if (val !== this.value) {
this.changed = true
this.$emit('input', val)
if (this.isAttachment || this.isEnum || this.isBoolean || this.isRating || this.isSet || this.isTime || this.isDateTime || this.isDate) {
if (this.isAttachment || this.isBoolean || this.isRating || this.isTime || this.isDateTime || this.isDate) {
this.syncData()
} else if (!this.isCurrency) {
} else if (!this.isCurrency && !this.isEnum && !this.isSet) {
this.syncDataDebounce(this)
}
}
Expand Down Expand Up @@ -228,7 +230,7 @@ export default {
// this.$refs.input.focus();
},
beforeDestroy() {
if (this.changed && !(this.isAttachment || this.isEnum || this.isBoolean || this.isRating || this.isSet || this.isTime || this.isDateTime)) {
if (this.changed && !(this.isAttachment || this.isBoolean || this.isRating || this.isTime || this.isDateTime)) {
this.changed = false
this.$emit('change')
}
Expand Down
Expand Up @@ -54,7 +54,6 @@ export default {
},
set(val) {
this.$emit('input', val)
this.$emit('update')
}
},
enumValues() {
Expand Down
Expand Up @@ -57,7 +57,6 @@ export default {
},
set(val) {
this.$emit('input', val.filter(v => this.setValues.includes(v)).join(','))
this.$emit('update')
}
},
setValues() {
Expand Down

0 comments on commit a0ce1eb

Please sign in to comment.