-
Notifications
You must be signed in to change notification settings - Fork 251
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
feat(clipboard): support input elements in shadow DOM #1033
base: main
Are you sure you want to change the base?
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit a342415:
|
First of all: Thanks for contributing to this library. This is much appreciated ❤️ I think we should add tests to Also the thing we just imply here is the internal abstractions working correctly. So this is probably where the real testing should take place to pave the way for possible other changes required by #1026. |
I added some very simple tests for Does this look good to you? |
Codecov Report
@@ Coverage Diff @@
## main #1033 +/- ##
===========================================
+ Coverage 99.46% 100.00% +0.53%
===========================================
Files 89 88 -1
Lines 2067 2061 -6
Branches 701 698 -3
===========================================
+ Hits 2056 2061 +5
+ Misses 11 0 -11
... and 12 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@Christian24 Thanks for your work on this. I'll review again with fresh eyes and try to figure out if - based on what we learned here - there are some easy improvements towards full shadow DOM support that we could add to that release as well. |
Thanks for taking the time to review it! |
@ph-fritsche is there something I can do to help get this, #1038, #1039, #1040 merged? |
@Christian24 I'd like to resolve #1019 before merging the pending PRs so that we have proper testing utils in place to verify our changes and any future bug reports. Also the CI is broken - as it seems due to conflicts with more recent versions of Typescript and Eslint. We need to fix these before we can move forward. |
@ph-fritsche Sorry, I got somewhat swallowed. I would like to help. I will try to rebase this to get started. |
Co-authored-by: Philipp Fritsche <[email protected]>
…DOM in setup(). Removed old custom elements test
Co-authored-by: Philipp Fritsche <[email protected]>
Co-authored-by: Philipp Fritsche <[email protected]>
Co-authored-by: Philipp Fritsche <[email protected]>
What:
This allows support for copy, cut & paste in inputs in open shadow dom custom elements.
Why:
Because I filled #1025 and #1026. This doesn't completely resolve #1026 though, however it should ease the situation when using native inputs in custom elements.
How:
Changed the implementation of getting the activeElement.
Checklist:
- [ ] Documentation (I am uncertain about this, maybe the state of #1026 should be at some point be part of the documentation?)