I use AJAX to update the plug-in configuration page. During this update I may add or remove input fields. If I remove a field, the dialog for entering the value for that field is not removed from the HTML DOM. This results in multiple dialogs with the same ID.
See the attached image. The first password dialog is old, and the second is new. But because they have the same ID (generated by HomeSeer based on the ID of the field) the first one is shown to the user when they click the new password field.
Should I do something in my code to ensure that dialogs for removed fields get cleaned up, or is this a bug in HomeSeer?
See the attached image. The first password dialog is old, and the second is new. But because they have the same ID (generated by HomeSeer based on the ID of the field) the first one is shown to the user when they click the new password field.
Should I do something in my code to ensure that dialogs for removed fields get cleaned up, or is this a bug in HomeSeer?
Comment