Skip to content

Commit

Permalink
Update aria-value
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Apr 16, 2020
1 parent 281c19e commit 04a0615
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@ export class InputNumber extends Component {
this.inputEl.setSelectionRange(selectionEnd, selectionEnd);
}
}

this.inputEl.setAttribute('aria-valuenow', value);
}

updateModel(event, value) {
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 04a0615

Please sign in to comment.