From 04a0615a0f6fc41dd617efe0803a1ec47e7ac204 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 16 Apr 2020 21:36:38 +0300 Subject: [PATCH] Update aria-value --- src/components/inputnumber/InputNumber.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/inputnumber/InputNumber.js b/src/components/inputnumber/InputNumber.js index 623e6a3fe3..8fba108b93 100644 --- a/src/components/inputnumber/InputNumber.js +++ b/src/components/inputnumber/InputNumber.js @@ -600,6 +600,8 @@ export class InputNumber extends Component { this.inputEl.setSelectionRange(selectionEnd, selectionEnd); } } + + this.inputEl.setAttribute('aria-valuenow', value); } updateModel(event, value) { @@ -678,6 +680,7 @@ export class InputNumber extends Component { const formattedValue = this.formatValue(this.props.value); if (this.inputEl.value !== formattedValue) { this.inputEl.value = formattedValue; + this.inputEl.setAttribute('aria-valuenow', this.props.value); } }