mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
fix: Document star/unstar from list item navigates to document (regression)
This commit is contained in:
1 parent
111212b038
commit
40491fafe9
1 file changed
+2
@@ -106,6 +106,7 @@ function DocumentMenu({
|
||||
|
||||
const handleStar = React.useCallback(
|
||||
(ev: SyntheticEvent<>) => {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
document.star();
|
||||
},
|
||||
@@ -114,6 +115,7 @@ function DocumentMenu({
|
||||
|
||||
const handleUnstar = React.useCallback(
|
||||
(ev: SyntheticEvent<>) => {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
document.unstar();
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user