Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 导致用户自己设置的dataTransfer.setData('text/plain')失效 #3249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hxdyj
Copy link

@hxdyj hxdyj commented Jul 26, 2024

Types of changes

  • New feature
  • Bug fix
  • Enhancement
  • Documentation change
  • Coding style change
  • Component style change
  • Refactoring
  • Test cases
  • Continuous integration
  • Typescript definition change
  • Breaking change
  • Others

Background and context

在tree onDragStart 事件 dataTransfer.setData('text/plain')设置不上

Solution

emit之前去设置node的dataTransfer.setData

How is the change tested?

Changelog

Component Changelog(CN) Changelog(EN) Related issues
Tree 修复 onDragStart dataTransfer.setData 不生效

Checklist:

  • Test suite passes (npm run test)
  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to main branch)

Other information

Copy link

codesandbox bot commented Jul 26, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant