They say a picture is worth a thousand words, and what's bothering me now is this predicament:
https://i.sstatic.net/UGxyi.jpg
I apologize for the blurred text, but I can't disclose much due to company policy... As you can see in the screenshot, there's a dropdown menu (set to dropup) that isn't fully visible. This issue mainly arises with the first few rows or when there's limited data in the grid.
I've shared some code snippets on JSBin (though not functional examples), stripping out sensitive parts as mandated by company regulations. Hopefully, the provided code will offer some insight. Just to note, this project is built using React Bootstrap. The JSX snippets used, relevant CSS classes for the data grid, and HTML visible upon compilation have been included.
https://jsbin.com/wuvuhemewo/edit?html,css,js,output
I've lost track of everything I've attempted, from tweaking z-index everywhere (desperate times call for desperate measures) to trying every possible solution sourced from Google and Stack Overflow.
Here's what happens when I expand the elusive Options "dropup" menu:
<div class="datagrid__options-btn show dropup">
<button aria-haspopup="true" aria-expanded="true" id="dropdown-basic-button" type="button" class="dropdown-toggle btn btn-link">Options</button>
<div x-placement="top-start" aria-labelledby="dropdown-basic-button" class="dropdown-menu show" style="position: absolute; top: auto; left: 0px; margin: 0px; right: auto; bottom: 0px; transform: translate(2.4px, -16px);" data-popper-reference-hidden="false" data-popper-escaped="false" data-popper-placement="top-start">
<a href="#" class="dropdown-item" role="button">Option1</a>
<a href="#" class="dropdown-item" role="button">Option2</a>
<a href="#" class="dropdown-item" role="button">Option3</a>
<a href="#" class="dropdown-item" role="button">Option4</a>
<a href="#" class="dropdown-item" role="button">Option5</a>
<a href="#" class="dropdown-item" role="button">Option6</a>
<a href="#" class="dropdown-item" role="button">Option7</a>
</div>
UPDATE: I've recently discovered that overflow-x seems to be the culprit behind the hidden dropdown menu. Once removed from these two elements:
<div class="dg-table__wrapper">
<div class="table-responsive">
, the dropdown becomes visible. However, this causes the datagrid to widen excessively, and any attempts to add overflow simply conceal the dropdown again. Could it be that this is the root cause of the issue?