Skip to content

[nz-input] Input is not disabled on initial render when using signal form #9642

@hungt512

Description

@hungt512

Reproduction link

https://stackblitz.com/edit/2wmeh83u-egxxp2ia?file=src%2Fapp%2Fapp.ts

Steps to reproduce

  1. Initialize the component with isDisabled set to true.
  2. Observe the input field inside signalForm on initial render.
  3. Notice that the input field is not disabled, despite isDisabled() === true.
  4. Trigger the updateState function once.
  5. Trigger the updateState function a second time.
  6. Observe that after the second call, the input field becomes disabled as expected.

Angular version 21.0.8.

What is expected?

The input field should be disabled on component initialization.

What is actually happening?

The input field is not disabled on component initialization.

Environment Info
ng-zorro-antd 21.0.0
Browser Google Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions