diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-27 14:20:55 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-27 14:20:55 +0300 |
| commit | 115f38c422cffec6cc8f9b47a052f57766355aed (patch) | |
| tree | 3b2dfc18e59d7daebb3478d1cc212b295ae95cf5 /src | |
| parent | 48fd8a66ad554ee1f5079db7e267bf838d2e8b0a (diff) | |
fix optional color inputs
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/color_input/color_input.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/color_input/color_input.vue b/src/components/color_input/color_input.vue index b2acbc3d..bb25f5a8 100644 --- a/src/components/color_input/color_input.vue +++ b/src/components/color_input/color_input.vue @@ -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' |
