From e8f54416255c9b1e8e72dd58ab5494e1a032c029 Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 10 Nov 2023 08:22:59 -0500 Subject: [PATCH] Fix #5269: InputNumber buttons add aria-hidden --- components/lib/inputnumber/InputNumber.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index 04a011e37f..cad34e7c5c 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -1098,7 +1098,8 @@ export const InputNumber = React.memo( onKeyDown: (e) => onUpButtonKeyDown(e), onKeyUp: onUpButtonKeyUp, disabled: props.disabled, - tabIndex: -1 + tabIndex: -1, + 'aria-hidden': true }, ptm('incrementButton') ); @@ -1130,7 +1131,8 @@ export const InputNumber = React.memo( onKeyDown: (e) => onDownButtonKeyDown(e), onKeyUp: onDownButtonKeyUp, disabled: props.disabled, - tabIndex: -1 + tabIndex: -1, + 'aria-hidden': true }, ptm('decrementButton') );