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
Docs indicate $ionicLoading will show until hide() is called. But if you call show() with a duration, the next call to show() that doesn't have duration will use the previous call's duration. Looks like $ionicLoadingConfig is storing that previous call's value. Probably an issue for the other options as well.
Here's a CodePen where you can experience this behavior.
$ionicLoading.show({template: 'This will show until hide() is called'});$ionicLoading.show({template: 'This will only show for a second',duration: 1000});$ionicLoading.show({template: 'Uh oh, this only shows for a second too! Even though there is no duration.'});
Expected:
$ionicLoading.show() should behave consistently across multiple calls with different options.
Actual:
Options from previous calls to $ionicLoading.show() are being stored in $ionicLoadingConfig which effects the next calls to show().
Thanks for the great work on the framework! 🍻
The text was updated successfully, but these errors were encountered:
tomf009
changed the title
$ionicLoading.show() uses last value of duration if it isn't passed
bug: $ionicLoading.show() uses last value of duration if it isn't passed
Aug 26, 2014
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Docs indicate $ionicLoading will show until hide() is called. But if you call show() with a duration, the next call to show() that doesn't have duration will use the previous call's duration. Looks like $ionicLoadingConfig is storing that previous call's value. Probably an issue for the other options as well.
Here's a CodePen where you can experience this behavior.
http://codepen.io/anon/pen/alhvo
Example:
Expected:
$ionicLoading.show() should behave consistently across multiple calls with different options.
Actual:
Options from previous calls to $ionicLoading.show() are being stored in $ionicLoadingConfig which effects the next calls to show().
Thanks for the great work on the framework! 🍻
The text was updated successfully, but these errors were encountered: