Skip to content
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

Fix: prevent default behavior for the paste event #833

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

vscav
Copy link
Member

@vscav vscav commented Jul 22, 2024

In this MR, we want to prevent the default behavior of the paste event.

Indeed, the default behavior of the paste event includes triggering the input event right after. However, the component calls the update function for both events, which can lead to unexpected results.

By preventing the default behavior of the paste event, we make sure the update function is only called once.

@vscav vscav added the bug Something isn't working label Jul 22, 2024
@vscav vscav self-assigned this Jul 22, 2024
@vscav vscav changed the title Fix: prevent default pasting event Fix: prevent default behavior for the paste event Jul 22, 2024
@vscav vscav marked this pull request as ready for review July 22, 2024 16:07
@vscav vscav merged commit 5baa608 into master Jul 23, 2024
17 checks passed
@vscav vscav deleted the prevent-default-pasting-event branch July 23, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants