fix: Keep document menu open when toggling starred status to provide better feedback
This commit is contained in:
@ -95,10 +95,12 @@ class DocumentMenu extends React.Component<Props> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handleStar = (ev: SyntheticEvent<>) => {
|
handleStar = (ev: SyntheticEvent<>) => {
|
||||||
|
ev.stopPropagation();
|
||||||
this.props.document.star();
|
this.props.document.star();
|
||||||
};
|
};
|
||||||
|
|
||||||
handleUnstar = (ev: SyntheticEvent<>) => {
|
handleUnstar = (ev: SyntheticEvent<>) => {
|
||||||
|
ev.stopPropagation();
|
||||||
this.props.document.unstar();
|
this.props.document.unstar();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user