seawind543/react-token-input

Predefined KeyDown Event key `ESC` does not reset the value of token

Closed this issue · 0 comments

[Issue]
Predefined KeyDown Event ESC does not work correctly, the modified new value is still updated into the token.

Re-create steps:

  1. Create a new token with the value abc.
  2. Edit the token value. Change the value from abc to abcd.
  3. Press the ESC key to leave the inline edit mode.

The result is abcd has been updated as the token's new value.

[Expect result]
The token's value should remain as abc after pressing the ESC key to leave the inline edit mode.

[Issue found version]
v1.5.0 and older.

[Environment]
OS: Mac Big Sur
Browser: Google Chrome 95.0.4638.69, Firefox 94.0.1