Fixed #5003 - InputNumber: highlight on focus don't work on multiple inputs with the same value

pull/5037/head
tugcekucukoglu 2024-01-05 11:42:32 +03:00
parent cd50bf1ccc
commit 66b9785264
1 changed files with 4 additions and 0 deletions

View File

@ -956,6 +956,10 @@ export default {
input.value = this.formatValue(newValue); input.value = this.formatValue(newValue);
input.setAttribute('aria-valuenow', newValue); input.setAttribute('aria-valuenow', newValue);
this.updateModel(event, newValue); this.updateModel(event, newValue);
if (!this.disabled && !this.readonly && this.highlightOnFocus) {
DomHandler.clearSelection();
}
}, },
clearTimer() { clearTimer() {
if (this.timer) { if (this.timer) {