Skip to content

Signal forms reset broken while editing and form has debounce() #68076

@axeljaeger

Description

@axeljaeger

Which @angular/* package(s) are the source of the bug?

forms

Is this a regression?

No

Description

I have a signal form with a debounce:

  model = signal<string>('value');
  form = form(this.model, (schemaPath) => {
    debounce(schemaPath, 'blur');
  });

I see that I only get signal updates after the user blurs the form, as expected.

However, when I call reset() on the form with a value while user still has the field focussed, that value is lost since the editing is still active and the only change that is applied to the signal is the pending edit by the user.
I would expect the form value to immediately update while the form control is still focussed since I'd expect the debounce would only to apply to user events.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/hhgd7lym?file=src%2Fmain.ts

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)

Angular CLI       : 21.2.3
Angular           : 21.2.5
Node.js           : 24.9.0
Package Manager   : npm 11.6.0
Operating System  : darwin arm64

┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package                   │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build            │ 21.2.3            │ ^21.0.1           │
│ @angular/cli              │ 21.2.3            │ ^21.0.1           │
│ @angular/common           │ 21.2.5            │ ^21.0.0           │
│ @angular/compiler         │ 21.2.5            │ ^21.0.0           │
│ @angular/compiler-cli     │ 21.2.5            │ ^21.0.0           │
│ @angular/core             │ 21.2.5            │ ^21.0.0           │
│ @angular/forms            │ 21.2.5            │ ^21.0.0           │
│ @angular/platform-browser │ 21.2.5            │ ^21.0.0           │
│ @angular/router           │ 21.2.5            │ ^21.0.0           │
│ rxjs                      │ 7.8.2             │ ~7.8.0            │
│ typescript                │ 5.9.3             │ ~5.9.2            │
│ vitest                    │ 4.1.1             │ ^4.0.8            │

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions