Select input needs list as absolute

I found the following problem, in tables, pages and popups, I need to have a div with auto overflow to create a scroll if necessary. But I’m having difficulty working with this configuration and the select and multiselect input.
In these inputs, they create an additional scroll on the screen, while the ideal would be for the list of options to be above this div.

Example with closed select

Example with open select


As it should be even with overflow auto or hidden