Fix the problem with position absolute on iOS

If you set the position: absolute on iOS with bottom: 0, the modal falls behind Safari's navigation bar:

Position absolute and iOS modal behind Safari navigation bar

Set fixed position

To avoid the error, set position: fixed and bottom: 0:

Position absolute and iOS modal in front of navigation bar

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.