willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏
MIT License
4.04k stars 337 forks source link

Body is scrolling if target element has input field (iOS) #167

Closed fret2buzz closed 4 years ago

fret2buzz commented 4 years ago

Example: https://codepen.io/vr201/pen/wvajprj

Description: Body is scrolling if target element has input field with a parent container which has position: relative;. iOS12.

Steps to reproduce.

  1. Open a modal by clicking on the "Launch demo modal" button
  2. Scroll page starting with any input field

Actual result. Body is scrolling. Target element is not scrolling.

Expected result. Target element is scrolling only. Body is locked.

fret2buzz commented 4 years ago

Closing since it's not related to body-scroll-lock