disable keyboard on mobile on input

UI Components for Angular
Post Reply
zerros
Posts: 2
Joined: 22 Aug 2019, 12:24

19 Nov 2020, 10:11

Hello,

Forgive me for my bad english.

I'm using the input number component on mobile devices and I'd like to disable the keyboard opening when the user taps on - or +.
I've trie preventDefault and stopPropagation, but neither of them works:
<p-inputNumber [ngModel]="item.quantity" size="4" [showButtons]="true"
buttonLayout="horizontal" inputId="qt-{{item.id}}" spinnerMode="horizontal" [step]="1"
decrementButtonClass="p-button-danger" incrementButtonClass="p-button-success"
incrementButtonIcon="pi pi-plus" decrementButtonIcon="pi pi-minus" mode="decimal" min="0"
(onInput)="updateItem({ id: item.id, quantity: $event.value })">
Any idea please ??

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests