I am using PrimeNG version 10.0.2
Using component p-inputNumber, the onInput event isn't fired when the value is modified manually. It works normally when I use the spinner buttons.
HTML:
<p-inputNumber
[(ngModel)]="currentPage"
[showButtons]="true"
buttonLayout="horizontal"
spinnerMode="horizontal"
[step]="1"
size="2"
incrementButtonIcon="pi pi-angle-right"
decrementButtonIcon="pi pi-angle-left"
[min]="1"
[max]="maxPages"
(onInput)="changePage()"
>
</p-inputNumber>
Component code:
export class MyComponent {
currentPage = 1;
maxPages = 100;
...
changePage() {
console.log(this.currentPage);
}
}