Skip to content

Commit

Permalink
fix(core): message and subject getting copied to fresh email popup
Browse files Browse the repository at this point in the history
  • Loading branch information
maninder-pal-singh committed Jul 18, 2023
1 parent 5336a42 commit 27880b4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,21 @@ export class GroupComponent<E> implements OnInit, AfterViewInit {
input.setValue(element.node.state, value),
input.typeFunction(element.node.state) === InputTypes.List,
);
this.clearValues();
}
popper.hide();
};
}

private clearValues() {
this.emailInput = {
subject: '',
body: '',
focusKey: '',
caretPos: 0,
};
}

/**
* It hides the previous popper and shows the current popper.
* @param {MouseEvent} event - MouseEvent - The event that triggered the popper to show.
Expand Down

0 comments on commit 27880b4

Please sign in to comment.