0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed context menu closing after actions

This commit is contained in:
Simon Backx 2022-07-06 11:32:56 +02:00
parent 1be6d305a0
commit cc32b55ee9
2 changed files with 10 additions and 0 deletions

View file

@ -13,6 +13,11 @@ class AdminContextMenu extends React.Component {
hideComment(event) {
this.context.onAction('hideComment', this.props.comment);
this.close();
}
close() {
this.props.close();
}
render() {

View file

@ -13,6 +13,11 @@ class NotAuthorContextMenu extends React.Component {
reportComment(event) {
// todo
this.close();
}
close() {
this.props.close();
}
render() {