Blank space above keyboard (IOS Safari)

Viewed 1151
1 Answers

The issue is caused by overscroll, not the safe-area.

And unfortunately there is no easy way to fix it. The way I did it was by applying this plugin (https://github.com/willmcpo/body-scroll-lock) to container that should be scrollable while keyboard is open and adding this styles to it, so it becomes scrollable on it's own while body scroll is locked

.ios-scroll-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}
Related