Repository navigation
feat(core): add clear() to input fields and keep touched validation in sync #2536
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
Merged
danielleroux
merged 23 commits into
main
from
feat/2595-input-numberinput-textarea-validation
Nov 10, 2026
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3212052
Added changes from previous pull request
1307-Dev 26678fa
Added cahnges adhering to comments.
1307-Dev abe7f27
recommended changes
1307-Dev a7cf670
Programatically changing values should update the field if touched isโฆ
1307-Dev d5267d8
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
1307-Dev cde24ec
Added a fix for vmodel not working both ways as expected in vue examples
1307-Dev 5188353
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
1307-Dev b566b6f
Added merge conflict fix
1307-Dev e165020
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
JonaMaiss 5acf3f5
enhance input validations behavior
JonaMaiss f013433
enhance date-input validation
JonaMaiss 3a22912
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
JonaMaiss 42e34e0
change availability of variables from 5.3.0. to 6.0.0
JonaMaiss 0e353fd
clear button should remove touched state of input field
JonaMaiss 95f7226
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
JonaMaiss 42e123a
automatically changed files
JonaMaiss f6ff785
clear valdation state
JonaMaiss c412f69
fix lint error
JonaMaiss 2e29166
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
JonaMaiss e8b5cc6
fix implementation after merging main
JonaMaiss 87d45a5
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
JonaMaiss 6434516
remove @internal from getValidityState
JonaMaiss 0ca1715
Merge branch 'main' into feat/2595-input-numberinput-textarea-validation
JonaMaiss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@siemens/ix-angular': minor | ||
| --- | ||
|
|
||
| Expose `clear()` on input, number-input, textarea, and date-input, and `getValidityState()` on number-input and textarea in both NgModule and standalone components. | ||
|
|
||
| Calling `clear()` also marks the bound Angular form control as untouched. Required validation feedback stays hidden until the field is touched again, without removing validators or resetting dirty state. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| '@siemens/ix': minor | ||
| --- | ||
|
|
||
| Add `clear()` to input, number-input, textarea, and date-input to empty their values and reset touched validation feedback. Number-input clearing respects `allowEmptyValueChange`. | ||
|
|
||
| Keep touched validation feedback synchronized with Angular forms, including when clearing an already-empty field. | ||
|
|
||
| Add `getValidityState()` to number-input and textarea for consistent access to native validation. | ||
|
|
||
| Keep programmatic values, form values, and validation feedback synchronized while preserving decimal entry in number-input and removing stale error-message references after clearing. | ||
|
|
||
| Fixes #1799. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.