Skip to content

fix(datepicker): propagate date range validation to signal forms - #2426

Open
spike-rabbit wants to merge 1 commit into
mainfrom
fix/date-range-signal-validation
Open

fix(datepicker): propagate date range validation to signal forms#2426
spike-rabbit wants to merge 1 commit into
mainfrom
fix/date-range-signal-validation

Conversation

@spike-rabbit

@spike-rabbit spike-rabbit commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

Notify Signal Forms when nested date inputs change so date-range format errors are re-evaluated.

Testing

  • pnpm exec ng test element-ng --include='**/datepicker/si-date-range.component.spec.ts' --no-watch

Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@spike-rabbit
spike-rabbit force-pushed the fix/date-range-signal-validation branch from 2e1d12e to d03e2ca Compare July 28, 2026 12:30
@spike-rabbit
spike-rabbit marked this pull request as ready for review July 28, 2026 12:32
@spike-rabbit
spike-rabbit requested review from a team as code owners July 28, 2026 12:32
Notify signal forms when nested date inputs change so format errors are re-evaluated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@spike-rabbit
spike-rabbit force-pushed the fix/date-range-signal-validation branch from d03e2ca to bf6e1d3 Compare July 28, 2026 13:03
this.updateValue(dateRange);

this.onChange(this.value());
this.onValidatorChange();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you also call thie function in case the config changes e.g. on min / max date change?

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