p-inputNumber keyup and keydown causing number value to increment

UI Components for Angular
Post Reply
Posts: 1
Joined: 17 Sep 2021, 11:55

17 Sep 2021, 12:06

How can I stop this?

If I attempt to preventDefault in the (keydown) event it doesn't work, because the event is bound to the p-inputNumber element, rather than the underlying input element.

I'm sure there's some obvious thing that I've missed, but I can't find it anywhere.


Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests