From f5e8fa0417f629c27f8df2c29c8a4eebcf181a73 Mon Sep 17 00:00:00 2001 From: Manuel Meister Date: Tue, 26 Dec 2023 11:14:36 +0100 Subject: [PATCH 1/2] Use default autoSaveDelay to fix #4212 --- frontend/src/components/form/api/ApiColorPicker.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frontend/src/components/form/api/ApiColorPicker.vue b/frontend/src/components/form/api/ApiColorPicker.vue index 91ea041e84..a495d45a73 100644 --- a/frontend/src/components/form/api/ApiColorPicker.vue +++ b/frontend/src/components/form/api/ApiColorPicker.vue @@ -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 {} }, From ac056a09728915f0a7a61fdfc55f4fc811af171b Mon Sep 17 00:00:00 2001 From: Manuel Meister Date: Fri, 29 Dec 2023 17:51:14 +0100 Subject: [PATCH 2/2] Don't emit picker if not initialized --- frontend/src/components/form/base/BasePicker.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/form/base/BasePicker.vue b/frontend/src/components/form/base/BasePicker.vue index 649387bb88..c73baffe90 100644 --- a/frontend/src/components/form/base/BasePicker.vue +++ b/frontend/src/components/form/base/BasePicker.vue @@ -174,7 +174,6 @@ export default { }, setValue(val) { if (this.localValue !== val) { - this.$emit('input', val) this.localValue = val if (this.localValueInitialized) { @@ -203,6 +202,9 @@ export default { this.showPicker = false }, async inputFromPicker(val) { + if (this.value === val) { + return + } try { if (this.parsePicker !== null) { val = await this.parsePicker(val)