Skip to content

Commit

Permalink
fix(core): disable drag for reference node only
Browse files Browse the repository at this point in the history
  • Loading branch information
CatsJuice committed Jul 10, 2024
1 parent ae1b6d7 commit 4790abc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export const SidebarDocItem = function SidebarDocItem({
}
: { ...attributes, ...listeners };

// workaround to avoid invisible in playwright caused by nested drag
delete dragAttrs['aria-disabled'];

return (
<SidebarDocTreeNode
ref={setNodeRef}
Expand Down

0 comments on commit 4790abc

Please sign in to comment.