jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.68k stars 2.4k forks source link

Duplicate datepicker is displayed when ui-datepicker is included in html dynamically and append to body is true #8665

Open AshwiniAJadhav opened 4 years ago

AshwiniAJadhav commented 4 years ago

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 chromium version 71.0.3578.98. Please suggest solution for this.