mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 03:19:52 +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={
|
postfix={
|
||||||
<div
|
<div
|
||||||
onClick={stopPropagation}
|
onClick={stopPropagation}
|
||||||
|
onMouseDown={e => {
|
||||||
|
// prevent drag
|
||||||
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
style={{ display: 'flex', alignItems: 'center' }}
|
style={{ display: 'flex', alignItems: 'center' }}
|
||||||
>
|
>
|
||||||
<CollectionOperations
|
<CollectionOperations
|
||||||
|
|||||||
Reference in New Issue
Block a user