I have a modal that I need to be position fixed on the bottom of my screen. It works fine on browser using CSS
position: fixed;
bottom: 0px;
top: auto; // overwrite top:0
Works perfectly on web browser, but on mobile web, this fixes the modal to the bottom of the HTML instead of the screen. Even on the tiniest screen, the HTML is at least twice as long as the screen. Unfortunately the modal also closes with an onClickOutside, so it's impossible to access the modal.
This is especially bad since part of the site is used by a wrapped app, which needs the modal more than the desktop browser.
Is there another property that I need to add in CSS to handle mobile safari and chrome? Something I can do in JS without adding a module? Thanks
EDIT: Some more info that may help
JSX Structure
<body>
<div>
// lots of nesting later
<CustomInput onClick={this.toggleModal} />
</div>
<CustomModal />
</body>
I can't control this as the Modal is rendered from a module, so I can't move it adjacent to CustomInput.
The browsers I'm using are up-to-date Safari and Chrome on a recently updated iPhone as well, so there shouldn't be any concern about outdated behavior on browsers.
Here's a simplified codepen where it seems to happen: https://codepen.io/anon/pen/OjgWYL Check it out on different magnifications