You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LoadingController throws exception 'EXCEPTION: Cannot read property 'remove' of null in error_handler.js:45' when you call the dismiss() method after a loading overlay has already timed out from the duration property.
What behavior are you expecting?
Calling dismiss() on a loading overlay should not throw exception if already removed from UI based on the duration property already being exceeded. What happens is the duration time expires on a loading overlay before dismiss() is called throws the exception.
Just a note, the opposite of the original issue is also true. Dismissing a loading overlay BEFORE the duration ends throws an error when the duration ends. For example: If I present a loading overlay with duration: 5000 and then dismiss it after 3 seconds, the same error will be thrown 2 seconds later, when the 5000ms ends.
@manucorporat Just a suggestion: It might be better to also clear the timeout immediately after the overlay is dismissed.
Short description of the problem:
LoadingController throws exception 'EXCEPTION: Cannot read property 'remove' of null in error_handler.js:45' when you call the dismiss() method after a loading overlay has already timed out from the duration property.
What behavior are you expecting?
Calling dismiss() on a loading overlay should not throw exception if already removed from UI based on the duration property already being exceeded. What happens is the duration time expires on a loading overlay before dismiss() is called throws the exception.
Steps to reproduce:
Other information:
Which Ionic Version? 1.x or 2.x
2.0RC0
Plunker that shows an example of your issue
Plunkr is not allowing me to import LoadingController
http://plnkr.co/edit/0n6FDdJ5CBMXsdI2ERVh
Run
ionic info
from terminal/cmd prompt: (paste output below)Your system information:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.3.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS:
Node Version: v5.7.0
The text was updated successfully, but these errors were encountered: