ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

_From @basdp on June 29, 2016 14:20_ #396

Open amritsubedi opened 5 years ago

amritsubedi commented 5 years ago

Where did you add this code? From @basdp on June 29, 2016 14:20

This is the malefactor: https://github.com/driftyco/ionic/blob/1.x/js/angular/service/modal.js#L194

I fixed it temporarily by changing the code to:

var isInScroll = ionic.DomUtil.getParentOrSelfWithClass(e.target, 'scroll');
if (isInScroll !== null && !isInScroll) {
    e.preventDefault();
}

Originally posted by @jgw96 in https://github.com/ionic-team/ionic-v1/issues/121#issuecomment-272568412