mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-04 19:15:33 +08:00
fix(core): unexpected collection item drag event (#6443)
close TOV-785 before: https://github.com/toeverything/AFFiNE/assets/102217452/71b563a5-7a1a-4ec5-871f-8de373742bad
This commit is contained in:
+4
@@ -162,6 +162,10 @@ export const CollectionSidebarNavItem = ({
|
||||
postfix={
|
||||
<div
|
||||
onClick={stopPropagation}
|
||||
onMouseDown={e => {
|
||||
// prevent drag
|
||||
e.stopPropagation();
|
||||
}}
|
||||
style={{ display: 'flex', alignItems: 'center' }}
|
||||
>
|
||||
<CollectionOperations
|
||||
|
||||
Reference in New Issue
Block a user