To run this bug demo:
$ git clone https://github.com/rlue/downshift-debug
$ cd downshift-debug
$ yarn policies set-version berry # below yarn v1.22
$ yarn set version berry # for yarn v1.22+
$ yarn install
$ yarn run start
This will load the faulty version of this demo app at http://localhost:8080. To observe the bug in question, do the following:
- Enter the name of a US state;
- highlight it using the mouse or arrow keys;
- click or press
<Enter>
(so far, so good); - enter the name of another US state;
- highlight it using the mouse or arrow keys;
- press
<Escape>
.
This will cause the application to crash.
To see how using string values in the item list will avoid the bug,
check out branch workaround
and repeat the process.