Skip to content

morph preserves input value on active element - #3985

Merged
1cg merged 3 commits into
bigskysoftware:four-devfrom
MichaelWest22:morph-active-preserve
Aug 28, 2026
Merged

morph preserves input value on active element#3985
1cg merged 3 commits into
bigskysoftware:four-devfrom
MichaelWest22:morph-active-preserve

Conversation

@MichaelWest22

@MichaelWest22 MichaelWest22 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Description

When we morph inputs values that have changed there default value we also push an update to the inputs internal value property to respect the server request to update the values input. But if the input is active and focused with the user editing it right now we can block this value update to preserve the end users active input text they may have just changed. This allows you to morph an active form with the last input change events data returned from the server without losing any text changed during the time it takes for the request to complete.

Corresponding issue:

Testing

Added a basic test

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

@1cg
1cg merged commit 307f209 into bigskysoftware:four-dev Aug 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants