Skip to content

Conversation

@lucasnetau
Copy link
Collaborator

@lucasnetau lucasnetau commented May 5, 2025

This PR does two things:

  • Call helper.save() after fields are reordered via the manual sorting buttons Fixes Sort buttons don't trigger formSaved event #1596
  • Refactor events:
    • Remove events.js legacy IE11 support
    • Create events with Bubbling enabled
    • Dispatch events at the stage level (or where appropriate) instead of at document level
  • Added save calls when field options were re-ordered or added
  • Change to using the input event instead of 'click blur change keyup' to detect changed to attributes in modern browsera
  • Ensure that label changes are saved

@lucasnetau lucasnetau requested a review from kevinchappell May 5, 2025 04:44
@lucasnetau lucasnetau changed the title Fix/1596 Call save after changing field order in stage via sorting buttons Improve formBuilder event dispatch and improve capturing of all stage modifications May 12, 2025
Copy link
Owner

@kevinchappell kevinchappell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was long overdue. great work

@kevinchappell kevinchappell merged commit 060c600 into kevinchappell:master May 13, 2025
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 3.19.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lucasnetau lucasnetau deleted the fix/1596 branch May 13, 2025 01:02
@lucasnetau
Copy link
Collaborator Author

this was long overdue. great work

Yes, now there hopefully is no need to use a ChangeObserver to monitor for stage changes in applications, testing with my big application now.

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.

Sort buttons don't trigger formSaved event

2 participants