From 7add3898b6c8b3f7568e617fc41e98c97bbd6f9a Mon Sep 17 00:00:00 2001 From: Akshay Antony <123446355+akshayaqburst@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:36:32 +0530 Subject: [PATCH] fix: #16591, InputNumber: InputNumber with horizontal and vertical buttons are not accessible through keyboard. (#16592) Co-authored-by: ANTONA09 --- 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 5860577c9ee..e7595eaee4b 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()"