-
Notifications
You must be signed in to change notification settings - Fork 2k
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
add html handling in native types #2949
Conversation
8d8a84c
to
8967870
Compare
8967870
to
a91d0f8
Compare
Codecov Report
@@ Coverage Diff @@
## main #2949 +/- ##
==========================================
- Coverage 46.96% 46.94% -0.02%
==========================================
Files 79 79
Lines 2291 2294 +3
Branches 501 501
==========================================
+ Hits 1076 1077 +1
- Misses 1215 1217 +2
|
@darthtrevino do you have any opinion about this ? |
I apologize, I've been a beet slammed at work. Just taking a quick look - Is the preventDefault() necessary()? At some point we removed some of that because we didn't want to interfere with custom handling of native events. Also, can you put together an example on the docsite using this new type? You can base it off of the existing native types example or just extend it if you prefer |
Thanks for your answer. Yes I will try to setup an example. Without the preventDefault, the browser opens the content in a new tab in that case. I am not very familiar with this code base, so maybe it can be put somewhere else? As a side not, I did not saw side effects on other handlers. |
@darthtrevino I've just added an example, please let me know if this looks good to you. |
@darthtrevino sorry to bother you. What is the status on this one ? |
Hey Maxence,
Again, apologies for the delay. I went ahead and merged it, I'll work on
stabilizing the main branch and preparing for a release.
…On Tue, Feb 9, 2021 at 10:47 AM Maxence Dalmais ***@***.***> wrote:
@darthtrevino <https://github.com/darthtrevino> sorry to bother you. What
is the status on this one ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2949 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3XCCGEQS6ME57NBF6TRLS6F7LLANCNFSM4VV2OZWA>
.
|
This PR raises a problem: dragged images, URLs, and links etc. typically have multiple data transfer items with type |
* add html handling in native types * add release strategy * add documentation
This PR solves #2928 and allows to drag and drop HTML elements such as images from another tab.
This PR does not implements any custom logic to deal with the HTML data in itself.