mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
fix(core): some dnd perf issues (#9661)
1. page list item are bound two draggables. adding `draggable` prop to WorkbenchLink to mitigate the issue. 2. DndService may not resolve datatransfer when dragging.
This commit is contained in:
@@ -382,7 +382,7 @@ const PageListItemWrapper = forwardRef(
|
||||
|
||||
if (to) {
|
||||
return (
|
||||
<WorkbenchLink ref={ref} {...commonProps} to={to}>
|
||||
<WorkbenchLink ref={ref} draggable={false} {...commonProps} to={to}>
|
||||
{children}
|
||||
</WorkbenchLink>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user