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
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
When removing a datepicker element from the dom, the element is not cleaned up properly and causes errors when the datepicker is added back to the dom.
Link to minimally-working plunker that reproduces the issue:
https://plnkr.co/edit/2zfVptOELXPeslM2EIVq?p=preview
Click on the date link, open and select a date from the datepicker and click the save button.
Click on the date link a second time and open the date picker. The following error is thrown in the console.
Please respect the fact that we are unpaid volunteers - in particular, many of us have been extraordinarily busy the past few months (one with prepping for ng-conf on the Angular team, myself flying to 5 different cities in the past month), and posting questions intended to badger is in bad form.
I'm still not convinced this is really something we should do in the library itself - this really is the job of anything being used to wire up the third party library into Angular. The implication would mean that we would have to make similar changes to every other component. In addition, if the $destroy is triggered and the element is destroyed in the process, this has the potential to trigger a double $destroy. This does not pass the smell test to me.
Bug description:
When removing a datepicker element from the dom, the element is not cleaned up properly and causes errors when the datepicker is added back to the dom.
Link to minimally-working plunker that reproduces the issue:
https://plnkr.co/edit/2zfVptOELXPeslM2EIVq?p=preview
### Version of Angular, UIBS, and BootstrapClick on the date link, open and select a date from the datepicker and click the save button.
Click on the date link a second time and open the date picker. The following error is thrown in the console.
Angular: 1.5.3
UIBS: 1.3.1
Bootstrap: 3.3.6
I think this can be fixed by adding the following to the UibDatepickerPopupController:
You can view the fix working in this plunker:
https://plnkr.co/edit/oTtDgtmdKFQnMDaA9PhU?p=preview
The text was updated successfully, but these errors were encountered: