ant-design-vue
ant-design-vue copied to clipboard
improve: shadow dom supports
This is a ...
- [ ] New feature
- [x] Bug fix
- [ ] Site / document update
- [ ] Component style update
- [ ] TypeScript definition update
- [x] Refactoring
- [ ] Code style optimization
- [ ] Branch merge
- [ ] Other (about what?)
What's the background?
- add shadow dom supports to
vc-trigger - extract
getTargetFromEventfunction to a separate file
For now, when VcTrigger component is used in ShadowDOM environment(root element is in a shadowRoot), the condition contains(root, target) in onDocumentClick function will get wrong result. This is caused by event retargeting(https://javascript.info/shadow-dom-events)
API Realization (Optional if not new feature)
- Basic thought of solution and other optional proposal.
- List final API realization and usage sample.
- GIF or snapshot should be provided if includes UI/interactive modification.
What's the effect? (Optional if not new feature)
- Does this PR affect user? Which part will be affected?
- What will say in changelog?
- Does this PR contains potential break change or other risk?
Changelog description (Optional if not new feature)
- English description
- Chinese description (optional)
Self Check before Merge
- [ ] Doc is updated/provided or not needed
- [ ] Demo is updated/provided or not needed
- [ ] TypeScript definition is updated/provided or not needed
- [ ] Changelog is provided or not needed
Additional Plan? (Optional if not new feature)
If this PR related with other PR or following info. You can type here.
need more details or discussion? @tangjinzhou
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
any progress? @tangjinzhou
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
any progress?
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.