iOS cutting off overflow of fixed dropdown in modals

Doesn’t happen in Safari, Chrome, or Firefox on Desktop, so it seems like a bug in iOS with how position: fixed; is handled…

5 Likes

I will have a look dropdowns inside modals are ultra tricky.

Also transform might cause issues with z index.

7 Likes

ok, one thing that might help… it happens in the poll modal, but not with selecting a region in the dates modal

5 Likes

Fixed here

https://github.com/discourse/discourse/commit/0c94e7b0896b6c3f2e27780fdbcb75fd527270b1

Adding position: relative; to .modal-body fixes it in iOS for some reason… definitely seems to be another iOS-specific quirk.

11 Likes