bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Dropdowns in Tables have z-index issues with subsequent rows

Open e-Dan-K opened this issue 8 months ago • 2 comments

Prerequisites

Describe the issue

I have a two-row dropdown that appears when a button is pressed within a table cell. On narrow iPhones, the dropdown appears to the left. When it is drawn, however, the second row of the dropdown is obscured by the next row of the table:

Image

On the last row of the table, it displays properly:

Image

This has been reliably recreatable on iPhones (or iPhone emulators... I can recreate it in Firefox and Chrome on Windows when I select iPhone 12/13 Pro in the inspector:

Image

With this demo page I can also recreate it under Windows Firefox and Chrome when selecting Galaxy S20 emulation.

Attached is reasonably minimized code that replicates the issue.

Reduced test cases

gamepage_v2.html

Viewable at: https://azure-marisa-69.tiiny.site

What operating system(s) are you seeing the problem on?

iOS, Android

What browser(s) are you seeing the problem on?

Safari, Firefox, Chrome

What version of Bootstrap are you using?

v5.3.3

e-Dan-K avatar Aug 25 '25 22:08 e-Dan-K

Everything works fine when removing .position-sticky from your cells <td>. Do you really need that?

florianlacreuse avatar Aug 27 '25 15:08 florianlacreuse

Everything works fine when removing .position-sticky from your cells <td>. Do you really need that?

I don't need it to be sticky, but if there is a note in the 4th column and you need to scroll right to read it, it is helpful to still be able to see who the note applies to.

Open to alternatives though...

e-Dan-K avatar Aug 27 '25 15:08 e-Dan-K