From 5ab977a2c05651a6657a61e85a575c413501171a Mon Sep 17 00:00:00 2001 From: Alban Mouton Date: Thu, 19 Dec 2024 13:22:16 +0100 Subject: [PATCH] fix: z-index on one-of-select --- lib/src/components/nodes/one-of-select.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/components/nodes/one-of-select.vue b/lib/src/components/nodes/one-of-select.vue index 843a1250..cccf5eb4 100644 --- a/lib/src/components/nodes/one-of-select.vue +++ b/lib/src/components/nodes/one-of-select.vue @@ -47,6 +47,10 @@ const onChange = (/** @type {string} */childTree) => { const fieldProps = computed(() => { const fieldProps = { ...inputProps.value } fieldProps['onUpdate:modelValue'] = onChange + if (!props.modelValue.options.readOnly) { + // vuetify zIndex stacking is buggy (for example https://github.com/vuetifyjs/vuetify/issues/16251) + fieldProps.menuProps = { zIndex: 3000 } + } const items = [] for (const childTreePointer of skeleton.value.childrenTrees || []) { const childTree = props.statefulLayout.compiledLayout.skeletonTrees[childTreePointer]