Skip to content

fix(field): keep text field value after visibility toggle - #656

Merged
tumms2021389 merged 2 commits into
masterfrom
fix/dec/INC-D61905_main
Nov 10, 2026
Merged

tumms2021389 merged 2 commits into
masterfrom
fix/dec/INC-D61905_main

Conversation

@tumms2021389

Copy link
Copy Markdown
Collaborator

TextInput, Email, URL and TextArea only set value$ in updateSelf() and never updated fieldControl. When a visibility condition hid and re-showed the field, *ngIf re-created the input and the form control wrote its stale empty value into it, so the field showed up blank even though value$ was correct.

Write value$ into fieldControl in updateSelf() so the form control stays in step with the Pega value.

TextInput, Email, URL and TextArea only set value$ in updateSelf() and never
updated fieldControl. When a visibility condition hid and re-showed the field,
*ngIf re-created the input and the form control wrote its stale empty value
into it, so the field showed up blank even though value$ was correct.

Write value$ into fieldControl in updateSelf() so the form control stays in
step with the Pega value.
@tumms2021389 tumms2021389 self-assigned this Nov 6, 2026
@tumms2021389
tumms2021389 merged commit 3cf6c4e into master Nov 10, 2026
6 checks passed
@tumms2021389
tumms2021389 deleted the fix/dec/INC-D61905_main branch November 10, 2026 09:06
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