Cell dropdown - hook triggered when pressing Esc button

Tags: #<Tag:0x00007efc71965ea0>

Hi.

Good afternoon. Please refer to the jsfiddle.

  1. The current value is ‘’.
  2. Click dropdown.
  3. Supply invalid value. Either press Enter or click away from the cell.
  4. afterValidate is triggered (isValid = false).
  5. Press Esc button.
  6. The dropdown closes and it reverts to the last valid value, see #1.
  7. afterValidate is not invoked.

As a workaround, I am tracking the afterValidate hook. However, this hook is not triggered when pressing Esc. Is there another hook triggered when the Esc button is pressed?

from our package.json
“handsontable-pro”: “^6.2.2”,
@handsontable/react”: “^2.1.0”,

Thank you!

is not triggered as clicking ESC is like deciding not to choose a value. If you want to track keys you may consider

https://handsontable.com/docs/7.3.0/Hooks.html#event:afterDocumentKeyDown
https://handsontable.com/docs/7.3.0/Hooks.html#event:beforeKeyDown

hooks.

However, those do not track validation and only share event.