Skip to content

Commit

Permalink
Merge pull request #4328 from manuelmeister/bugfix/#4212--api-colorpi…
Browse files Browse the repository at this point in the history
…cker

Reduce impact of ApiColorPicker emit bug
  • Loading branch information
manuelmeister authored Jan 8, 2024
2 parents c633b34 + ac056a0 commit d86b4cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions frontend/src/components/form/api/ApiColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ export default {
name: 'ApiColorPicker',
components: { ApiWrapper, ApiWrapperAppend },
mixins: [apiPropsMixin],
props: {
// disable delay per default
autoSaveDelay: { type: Number, default: 0, required: false },
},
data() {
return {}
},
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/form/base/BasePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export default {
},
setValue(val) {
if (this.localValue !== val) {
this.$emit('input', val)
this.localValue = val

if (this.localValueInitialized) {
Expand Down Expand Up @@ -212,6 +211,9 @@ export default {
this.showPicker = false
},
async inputFromPicker(val) {
if (this.value === val) {
return
}
try {
if (this.parsePicker !== null) {
val = await this.parsePicker(val)
Expand Down

0 comments on commit d86b4cd

Please sign in to comment.