mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-28 10:20:08 +02:00
Lowercase character before updating value
This commit is contained in:
parent
53a56f769c
commit
2a7ef09407
|
@ -1350,7 +1350,7 @@ class Choices {
|
||||||
therefore does not have the value of the key.
|
therefore does not have the value of the key.
|
||||||
*/
|
*/
|
||||||
if (this._isSelectOneElement) {
|
if (this._isSelectOneElement) {
|
||||||
this.input.value += keyString;
|
this.input.value += keyString.toLowerCase();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2118,7 +2118,7 @@ describe('choices', () => {
|
||||||
keyCode: KEY_CODES.A_KEY,
|
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,
|
keyCode: KEY_CODES.A_KEY,
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(instance.input.value).to.not.contain('A');
|
expect(instance.input.value).to.not.contain('a');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue