bootstrap-datepicker
bootstrap-datepicker copied to clipboard
Duplicate datepicker is displayed when ui-datepicker is included in html which is dynamically added/removed and append to body is true
When html having ui-datepicker is compiled and appended dynamically and clicks on calendar icon, it displays multiple datepickers. This dynamically appended html is removed and appended again on each user click. It seems previously created instances are getting attached when re-append the html. Here append to body flag is true and i am using
angular-ui-bootstrap 2.5.0 jquery 3.1.0 angular 1.5.x chromium version 71.0.3578.98. What would be the cause of this issue?
Please note it is uib-datepicker and not ui-datepicker. It is typo.