logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 115f38c422cffec6cc8f9b47a052f57766355aed
parent 48fd8a66ad554ee1f5079db7e267bf838d2e8b0a
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 27 Mar 2022 14:20:55 +0300

fix optional color inputs

Diffstat:

Msrc/components/color_input/color_input.vue3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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'