Skip to content

fix: paste and cut events not updating input values#450

Merged
surajshetty3416 merged 3 commits intofrappe:developfrom
Hemant-dbit:fix-paste-event-input
Dec 23, 2025
Merged

fix: paste and cut events not updating input values#450
surajshetty3416 merged 3 commits intofrappe:developfrom
Hemant-dbit:fix-paste-event-input

Conversation

@Hemant-dbit
Copy link
Contributor

Issue:

Pasting or cutting text into input fields didn't trigger updates. The preview would only update after typing additional characters or using arrow keys.

Solution:

  • Added @paste and @cut event handlers to trigger immediate updates when values are pasted or cut
  • Added auto-select on focus feature for better UX
  • Now input updates immediately when pasting or cutting values

Before

  • Pasting or cutting text did not update the preview immediately
  • Users had to type extra characters or use arrow keys to force an update

After

  • Input values update instantly on paste or cut actions
  • Preview remains consistent with user input
My.Page._.Builder.-.Google.Chrome.2025-12-22.15-23-55.mp4

Fixes #449

cc @surajshetty3416

@surajshetty3416 surajshetty3416 merged commit 0f7a201 into frappe:develop Dec 23, 2025
2 of 4 checks passed
@Hemant-dbit
Copy link
Contributor Author

@surajshetty3416
Thanks a lot for the review and merging this PR
I will be applying shortly for the Software Engineer Intern role and would love to keep contributing to Builder.
Appreciate the guidance!

@Hemant-dbit Hemant-dbit deleted the fix-paste-event-input branch December 24, 2025 15:29
@github-actions
Copy link

🎉 This PR is included in version 1.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pasting font size value in mobile view does not work

2 participants