Skip to content

Commit 572b44f

Browse files
committed
UI form dialog fix
Fix form elements not being removed from DOM after closing dialog on save/cancel -- this may cause issues with conditional fields if re-launching the form dialog.
1 parent 93b8178 commit 572b44f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ui/scripts/ui/dialog.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@
336336
if (!complete($formContainer)) { return false; }
337337

338338
$('div.overlay').remove();
339+
$formContainer.remove();
339340
$(this).dialog('destroy');
340341

341342
return true;
@@ -346,6 +347,7 @@
346347
'class': 'cancel',
347348
click: function() {
348349
$('div.overlay').remove();
350+
$formContainer.remove();
349351
$(this).dialog('destroy');
350352
}
351353
}

0 commit comments

Comments
 (0)