mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
When a native date input gets cleared manually by a user via the internal browser UI, the element changes from invalid to valid, but no `input` event is emitted. This commit introduces `InputValidityMonitor`, an injectable service that intercepts these edge-case native status changes. The monitor dynamically installs CSP-compliant styles appending specific animation keyframes for `:valid` and `:invalid` pseudoclasses on native form controls. By attaching an `animationstart` listener, Angular intercepts these changes immediately and re-invokes the parser. Fixes #67300 |
||
|---|---|---|
| .. | ||
| signals | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||