You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I using Tree comp, TreeNode style will still be changed even I set e.preventDefault() in OnDragStart (使用Tree组件时,在OnDragStart中设置并不能阻止TreeNode样式被改变)
#36140
Reproduction link
Steps to reproduce
What is expected?
do not set highlight style for TreeNode when there is a e.preventDefault() in onDragStart.
What is actually happening?
the dragged TreeNode will be set highlight even there is a e.preventDefault() in onDragStart.
In my case, I don't want to set the draggable prop to forbid dragging.
here is my suggestion, maybe need to put L149-L151 after L152? please refer to: https://github.com/react-component/tree/blob/master/src/TreeNode.tsx#L149
The text was updated successfully, but these errors were encountered: