Skip to content

fix(ChipInput): run template validators once with @angular/forms 22.3 - #352

Merged
xidedix merged 2 commits into
v5.7from
refactor/chip-input-validators
Nov 19, 2026
Merged

xidedix merged 2 commits into
v5.7from
refactor/chip-input-validators

Conversation

@xidedix

@xidedix xidedix commented Nov 19, 2026

Copy link
Copy Markdown
Member

@angular/forms 22.3.0 attaches validator directives to custom form controls (angular/angular#70723), so ChipInput's own attachment made every validator next to ngModel run twice per value change. The workaround is removed.

Peer dependencies move to Angular ^22.3.0, because on 22.2.x validators next to ngModel would no longer be applied. @angular/forms is back in the @coreui/angular peers: the bundle has imported it since ChipInput.

- peerDependencies `@angular/*` ^22.2.0 -> ^22.3.0 in all three packages
- `@angular/forms` ^22.3.0 back in @coreui/angular peerDependencies;
  the bundle imports it since ChipInput
- README badges
@angular/forms 22.3.0 attaches validator directives to custom controls
(angular/angular#70723), so ChipInput's own attachment added each
validator a second time. Drop it; validators next to ngModel now run
once per value change.

Requires @angular/forms >= 22.3.0: on 22.2.x validators next to ngModel
are not applied at all.
@xidedix
xidedix merged commit 3d014e4 into v5.7 Nov 19, 2026
9 checks passed
@xidedix
xidedix deleted the refactor/chip-input-validators branch November 19, 2026 11:02
xidedix added a commit that referenced this pull request Nov 19, 2026
- fix(Dropdown): keep the menu shown when visible flips back before the effect runs (#351)
- fix(ChipInput): run template validators once with `@angular/forms` 22.3; peer dependencies require Angular `^22.3.0` (#352)
- chore(build): switch libraries to `@angular/build:library` (#353)
- chore(dependencies): update to Angular 22.3.0
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.

1 participant