-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ionicLoading module backdrop on modal (doesnt disable clicks/input) #1720
Comments
I have the same issue. |
I'm looking for the solution and think I am close. In the forum, I proposed that putting the div between the head and body tag actually makes it work. I don't think this is best practice, but it works. I'm trying to edit the DOM creation line for the backdrop (ionic.bundle.js:37768) to see if I can get something working. However it doesnt seem to want to let me put a element directly into the document.
|
Placing the backdrop div inside the modal-backdrop div also works. I figured out a temporary workaround which is documented here: |
Hey @FTORRE, does that fix work for you? |
No.. adding style "pointer-events: none;" to the body tag does not fix the modal backdrop issue. I ended up doing this:
and then adding and removing the classes 'active' and 'visible'
and
in the loader.show and loader.hide functions, as such: |
I am also facing this issue recently, and I have be end up with this solution: overwrite the loader css, for example: and bind the loader hide event when click the back button: I think this will be easier and safe to use it. |
ionicLoading module does not disable background click/functionality on modal views; only on the primary view.
Here is an example of the problem:
http://codepen.io/ftorre/pen/GwqeI
For more info and a possible solution, see:
http://forum.ionicframework.com/t/ionicloading-overlay-doesnt-disable-background-buttons-on-modal/6355/3
The text was updated successfully, but these errors were encountered: