nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
4.06k stars 515 forks source link

[UTable] Table is being vertically scrollable when using USelectMenu inside cell #2002

Open SedanaYoga opened 3 months ago

SedanaYoga commented 3 months ago

Environment


Version

2.18.3

Reproduction

https://stackblitz.com/edit/nuxt-ui-fsqysa?file=app.vue

Description

I want to attach USelectMenu inside UTable cell, but the table container's width is fixed, so I need to make the table horizontally scrollable. I put overflow-x-scroll class into UTable, it is scrollable but when I click USelectMenu, the table is vertically scrollable as well (I don't want that) and the option popover is being cut off inside the table.

Expected outcome: the table is horizontally scrollable but without cutting the USelectMenu popover.

Can anybody please help me to workaround this? it's been a while for me to investigate whats the issue here. Thanks!

Additional context

image

Logs

No response

benjamincanac commented 3 months ago

Have you tried setting :popper="{ strategy: 'fixed' }" on the SelectMenu?

SedanaYoga commented 3 months ago

Have you tried setting :popper="{ strategy: 'fixed' }" on the SelectMenu?

Hey @benjamincanac, thanks for the reply, I added the setting you mentioned and it's still not working