Get lightning combobox list appear on top when there is few rows in lightning Datatable

columncustomlightning-comboboxlightning-datatablelightning-web-components

My question is similar to this, I have a custom dropdown column which is appearing completely fine when we have many rows in the datatable. But in a sitation when we have a single record, it
Lightning:datatable custom dropdown list items seem to be appearing behind the LWC datatable's container.

enter image description here

I tried setting min-height, but it did not resolve the issue.

Also tried overriding below,

.slds-dropdown_left, .slds-dropdown--left {
    z-index: 9999;
    position: relative;
}

Didn't help though.
Any helpful suggestions to get this dropdown list appear without having to scroll this tiny row.
Thank you!

Best Answer

As per @SachinHooda's suggestion in comment, Replaced lwc combobox with with and that fixed the issue.

    <div class="slds-select_container" >
        <select name="peGroup"  value={selectedId} class="slds-select" onchange={handleChange}>
            <template for:each={options} for:item="opt">
               <option key={opt.value} value={opt.value}>{opt.label}</option> 
            </template>
        </select>
    </div>

enter image description here