From f0c43abf62eca95ebe3408524a666d63deeeeb9a Mon Sep 17 00:00:00 2001 From: ANTONA09 Date: Sat, 19 Oct 2024 15:27:02 +0530 Subject: [PATCH] fix: #16591, InputNumber: InputNumber with horizontal and vertical buttons are not accessible through keyboard. --- src/app/components/inputnumber/inputnumber.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index 83f4824d11e..95ec49c2624 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -114,7 +114,7 @@ export const INPUTNUMBER_VALUE_ACCESSOR: any = { class="p-button-icon-only" [class]="incrementButtonClass" [disabled]="disabled" - tabindex="-1" + tabindex="0" (mousedown)="onUpButtonMouseDown($event)" (mouseup)="onUpButtonMouseUp()" (mouseleave)="onUpButtonMouseLeave()" @@ -136,7 +136,7 @@ export const INPUTNUMBER_VALUE_ACCESSOR: any = { class="p-button-icon-only" [class]="decrementButtonClass" [disabled]="disabled" - tabindex="-1" + tabindex="0" [attr.aria-hidden]="true" (mousedown)="onDownButtonMouseDown($event)" (mouseup)="onDownButtonMouseUp()" @@ -160,7 +160,7 @@ export const INPUTNUMBER_VALUE_ACCESSOR: any = { [class]="incrementButtonClass" class="p-button-icon-only" [disabled]="disabled" - tabindex="-1" + tabindex="0" [attr.aria-hidden]="true" (mousedown)="onUpButtonMouseDown($event)" (mouseup)="onUpButtonMouseUp()" @@ -183,7 +183,7 @@ export const INPUTNUMBER_VALUE_ACCESSOR: any = { class="p-button-icon-only" [class]="decrementButtonClass" [disabled]="disabled" - tabindex="-1" + tabindex="0" [attr.aria-hidden]="true" (mousedown)="onDownButtonMouseDown($event)" (mouseup)="onDownButtonMouseUp()"