Fix for scrolling with modal opened. (#12899)

Change-Id: I9ba142a35ab887bb3a71c7311064ebab77bc01ba