diff --git a/frontend/src/components/Controls/ColorInput.vue b/frontend/src/components/Controls/ColorInput.vue index 5180c029a..5e9aa6d6b 100644 --- a/frontend/src/components/Controls/ColorInput.vue +++ b/frontend/src/components/Controls/ColorInput.vue @@ -4,6 +4,7 @@ ref="colorPickerRef" :placement="placement" :offset="popoverOffset" + :portal-to="portalTo" @open="events.onFocus" @close="handleClose" :modelValue="resolvedColor" @@ -164,6 +165,7 @@ const props = withDefaults( showPickerOnMount?: boolean; popoverOffset?: number; autocompleteReferenceElementSelector?: string; + portalTo?: string | HTMLElement | boolean; }>(), { modelValue: null, diff --git a/frontend/src/components/Controls/ColorPicker.vue b/frontend/src/components/Controls/ColorPicker.vue index 7150dfa02..5fc9f1871 100644 --- a/frontend/src/components/Controls/ColorPicker.vue +++ b/frontend/src/components/Controls/ColorPicker.vue @@ -4,6 +4,9 @@ v-if="renderMode === 'popover'" :placement="placement" :offset="offset" + :portal-to="portalTo" + @open="emit('open')" + @close="emit('close')" class="!block w-full"> @@ -30,7 +35,9 @@ ref="contentRef" :modelValue="modelValue" :showInput="showInput" + :showColorVariableOptions="showColorVariableOptions" renderMode="inline" + @mousedown.stop @update:modelValue="emit('update:modelValue', $event)" />