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:
JimmFly
2024-04-02 14:24:19 +00:00
parent 4624a4923d
commit f93ffbeb6f
@@ -162,6 +162,10 @@ export const CollectionSidebarNavItem = ({
postfix={
<div
onClick={stopPropagation}
onMouseDown={e => {
// prevent drag
e.stopPropagation();
}}
style={{ display: 'flex', alignItems: 'center' }}
>
<CollectionOperations