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
I just encountered this same issue a different way, by providing a year with no month and it causes the same loop. I've submitted a pull request (#1063) that resolves this issue by defaulting the month to 1.
It's really surprising ! I just copy pasta the documentation and end up with my Google Chrome freezed. Quite dangerous.
I see fixes are waiting to be merged. Looking forward to it.
For now, I know the problem is caused when ngModel date is invalid, I will make sure it won't happen by filtering the ngModel date format validity myself.
Bug description:
Browser crash/full cpu/infinite loop when setting model as new Date() and toggling the datepicker popup.
CAREFUL : See plunkr and click the button for the toggle, will have to restart script/tab/browser.
Checked on Firefox and Chrome.
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/z4FuG5CXzalen5BFV9Cc?p=preview
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 2.2.1
ng-bootstrap: 1.0.0-alpha.13
Bootstrap: v4-alpha
The text was updated successfully, but these errors were encountered: