Skip to content

Conversation

@a-stewart
Copy link
Contributor

This fixes #186998

In VS Code web, when editor.action.clipboardPasteAction is triggered (eg by right clicking on an input and selecting paste) it updates the value by setting element.value = .... However, this does not trigger the oninput handler which a the QuickInputs use to detect changes. As such right click and paste does not update the input causing #186998.

This can be fixed by updating the paste action to dispatch an input event on the element.

@a-stewart
Copy link
Contributor Author

^ The issue is that Event is imported so the constructor clashes (but somehow still works?)

I'll update the code to avoid the collision.

@a-stewart
Copy link
Contributor Author

Updated import and tests now pass

@vscodenpa vscodenpa added this to the December / January 2024 milestone Dec 13, 2023
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) December 13, 2023 15:39
@TylerLeonhardt TylerLeonhardt merged commit 81178e2 into microsoft:main Dec 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2024
@a-stewart a-stewart deleted the rightclick-paste-event branch February 5, 2024 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants