'Primeng multiselect drodown is not showing correctly

I am using primeng multiselect in my angular app.

It is not behaving as shown in example ie. https://www.primefaces.org/primeng/#/multiselect

when the window is small, the dropdown after filtering is not showing downwards instead stays on top of other element.

the trigger css is updating the top position. how to update the top position on filtering the multiselect.

{
    z-index: 1001;
    transform-origin: center bottom;
    top: -128px; //in my case this is not changing
    left: 0px;
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source