-
Notifications
You must be signed in to change notification settings - Fork 252
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
Replace type allAtOnce with "paste" #355
Comments
Is this a placeholder for a task you already started? I would appreciate it if I could grab this one. Thanks! |
This will be a breaking change and I'm not sure we're ready for it quite yet. But I can let you know when we are! In fact, if you want, you can go ahead and open a PR right now, you'll just have to keep it updated until we're ready to do it.
…--- original message ---
On Fri, Jun 5 at 09:43 PM, <notifications@github.com> Ricardo Busquet wrote:
Is this a placeholder for a task you already started? I would appreciate if I could grab this one. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
--- end of original message ---
|
What would be the use case of this? Wouldn’t this be a different use case from typing? I have to admit I never use allAtOnce=true |
Yes, it's a different use case. allAtOnce shouldn't exist. |
Ah right, that makes sense, wouldn't making a |
Yeah, that's the point of this issue 😉 |
went through a rabbit hole here. Would it be expected that this event would trigger Already learned a lot, I'll continue investigating, but I'm kind of stuck in the lack of support for the clipboard API on jsdom (if we go down the path of dispatching clipboard events). Learning how browsers behave in these cases and how to mock them has been really interesting though. |
The goal would be that we fire every event that would be fired in the browser when a user pastes text on an element (including focusing that input). |
|
@rbusquet I think I figured this out mostly, but if you want to experiment/learn about paste events I have a playground |
@nickmccurdy thanks! Yeah, I figured I would need more research, thanks for picking this one up. |
This was partially implemented in #348 (which was ported from testing-library/dom-testing-library#645), but I still have some more work in progress from the todo list. I'll close this when I either fix the todos or extract them into separate issues. |
The initial issue seems to be resolved. |
It's not aligned with the goals of this lib, but the use case is understandable so we should include a simple "paste" event.
The text was updated successfully, but these errors were encountered: