Open EvertonWingert opened 15 hours ago
I am having the same issue. It is tricky to fix, because since everything is teleported at the body
root we can't use the stacking contexts.
I managed to fix it using the following configuration
ui: {
select: {
slots: {
content: 'z-50'
}
},
selectMenu: {
slots: {
content: 'z-50'
}
}
}
Since the SelectMenu is in Modal which is portaled to the body, you might want to set :portal="false"
on the SelectMenu.
Environment
Version
3.0.0-alpha.5
Reproduction
https://github.com/EvertonWingert/nuxtui-modal-select-issue
Description
When using a select inside a modal(slideover, drawer), the options list is rendered behind the modal content. This appears to be a z-index issue where the dropdown is not properly layered above the modal.
Additional context
Logs
No response