It looks to me like that button is selected, while the other one is probably not. This “selected” style seems to give it some property (z-index, absolute position, etc.) that is raising it above your dropdown. I would try adding a class to the dropdown, where you assign a higher z-index value. If that doesn’t work, you might need to add “position: absolute” as well.
Edit: See this guide for how to affect stacking with CSS – https://www.freecodecamp.org/news/z-index-explained-how-to-stack-elements-using-css-7c5aa0f179b3/