Skip to content

Commit 27880b4

Browse files
fix(core): message and subject getting copied to fresh email popup
GH-9
1 parent 5336a42 commit 27880b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

projects/workflows-creator/src/lib/builder/group/group.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,21 @@ export class GroupComponent<E> implements OnInit, AfterViewInit {
400400
input.setValue(element.node.state, value),
401401
input.typeFunction(element.node.state) === InputTypes.List,
402402
);
403+
this.clearValues();
403404
}
404405
popper.hide();
405406
};
406407
}
407408

409+
private clearValues() {
410+
this.emailInput = {
411+
subject: '',
412+
body: '',
413+
focusKey: '',
414+
caretPos: 0,
415+
};
416+
}
417+
408418
/**
409419
* It hides the previous popper and shows the current popper.
410420
* @param {MouseEvent} event - MouseEvent - The event that triggered the popper to show.

0 commit comments

Comments
 (0)