mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-29 02:40:19 +02:00
Use Pick instead of Partial
This commit is contained in:
parent
1c57a53c73
commit
893cbef14c
|
@ -1449,7 +1449,10 @@ class Choices {
|
|||
}
|
||||
}
|
||||
|
||||
_onKeyUp({ target, keyCode }: Partial<KeyboardEvent>): void {
|
||||
_onKeyUp({
|
||||
target,
|
||||
keyCode,
|
||||
}: Pick<KeyboardEvent, 'target' | 'keyCode'>): void {
|
||||
const { value } = this.input;
|
||||
const { activeItems } = this._store;
|
||||
const canAddItem = this._canAddItem(activeItems, value);
|
||||
|
|
Loading…
Reference in a new issue