Skip to content

nz-input-number doesn't react on input, but only on change (that happens on blur) #8985

Closed
@HaidarVladyslav

Description

Reproduction link

https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/input-number/input-number.component.ts

Steps to reproduce

new component - https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/input-number/input-number.component.ts
legacy component - https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/input-number-legacy/input-number.component.ts
Why does it have (change) event instead of (ngModelChange) as it was before?
https://stackblitz.com/edit/qep7bq9r?file=src%2Fapp%2Fapp.component.ts

What is expected?

Why does it have (change) event instead of (ngModelChange) as it was before? Is it possible to fire onChange() event not when user triggers blur event?

What is actually happening?

It doesn't fire onChange event from ControlValueAccessor on input or onModelChange. Also, is it possible to remove value from field at all? - when I remove the value, it turns to nil (0).

Environment Info
ng-zorro-antd 19.0.2
Browser Chrome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions