remove form element if not dialog

This commit is contained in:
David Tsay 2022-03-27 20:08:34 -07:00
parent 5f70ab7dd3
commit 052ec19892

View File

@ -172,7 +172,9 @@ export default class FormsAPI {
function onFormSave(save) {
return () => {
if (overlay) {
if (element) {
formElement.remove();
} else {
overlay.dismiss();
}