Skip to content
Snippets Groups Projects
Commit 115f38c4 authored by HJ's avatar HJ :fire:
Browse files

fix optional color inputs

parent 48fd8a66
No related branches found
No related tags found
2 merge requests!1711Update stable - 2.5.0 release,!1385Migration to Vue 3 (again)
Pipeline #39495 passed
......@@ -14,7 +14,7 @@
:modelValue="present"
:disabled="disabled"
class="opt"
@change="$emit('update:modelValue', typeof value === 'undefined' ? fallback : undefined)"
@update:modelValue="$emit('update:modelValue', typeof modelValue === 'undefined' ? fallback : undefined)"
/>
<div class="input color-input-field">
<input
......@@ -91,6 +91,7 @@ export default {
default: true
}
},
emits: ['update:modelValue'],
computed: {
present () {
return typeof this.modelValue !== 'undefined'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment