Lowercase character before updating value

This commit is contained in:
Josh Johnson 2019-11-19 21:18:04 +00:00
parent 53a56f769c
commit 2a7ef09407
2 changed files with 3 additions and 3 deletions

View file

@ -1350,7 +1350,7 @@ class Choices {
therefore does not have the value of the key.
*/
if (this._isSelectOneElement) {
this.input.value += keyString;
this.input.value += keyString.toLowerCase();
}
}

View file

@ -2118,7 +2118,7 @@ describe('choices', () => {
keyCode: KEY_CODES.A_KEY,
});
expect(instance.input.value).to.contain('A');
expect(instance.input.value).to.contain('a');
});
});
@ -2132,7 +2132,7 @@ describe('choices', () => {
keyCode: KEY_CODES.A_KEY,
});
expect(instance.input.value).to.not.contain('A');
expect(instance.input.value).to.not.contain('a');
});
});
});