Skip to content

fix(forms): prevent date inputs from being marked dirty on init#69662

Open
MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:fix/#69632
Open

fix(forms): prevent date inputs from being marked dirty on init#69662
MeAkib wants to merge 1 commit into
angular:mainfrom
MeAkib:fix/#69632

Conversation

@MeAkib

@MeAkib MeAkib commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Signal Forms inputs that require validity tracking (date, datetime-local, month, time, week) were being marked dirty() on component initialization, before any user interaction. This caused validation error messages and invalid/valid styling to appear immediately on load.

Fix: #69632

@pullapprove pullapprove Bot requested a review from JeanMeche July 6, 2026 22:06
@ngbot ngbot Bot added this to the Backlog milestone Jul 6, 2026
Comment thread packages/forms/signals/src/util/parser.ts
Comment thread packages/forms/signals/src/directive/control_native.ts
Signal Forms inputs that require validity tracking (`date`, `datetime-local`,  `month`, `time`, `week`) were being marked `dirty()` on component initialization, before any user interaction. This caused validation error  messages and invalid/valid styling to appear immediately on load.

Fix: angular#69632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[formField] date input initializes in dirty state on component load

2 participants