Resolve broken text

This commit is contained in:
Josh Johnson 2017-04-13 09:03:07 +01:00
parent afd47f9b12
commit dbbcadba88

View file

@ -333,12 +333,17 @@ describe('Choices', () => {
this.choices.input.focus(); this.choices.input.focus();
// Key down to second choice // Key down to second choice
this.choices._onKeyDown({ let count = 0;
target: this.choices.input, while (count < 2) {
keyCode: 40, console.log('keydown');
ctrlKey: false, this.choices._onKeyDown({
preventDefault: () => {} target: this.choices.input,
}); keyCode: 40,
ctrlKey: false,
preventDefault: () => {}
});
count++;
}
// Key down to select choice // Key down to select choice
this.choices._onKeyDown({ this.choices._onKeyDown({