Keydown event not triggering when there's some logic

We have an input field with some keydown logic, it looks like the following:

When the IF block is disabled, keydown event prints correctly. But when the IF block is enabled, nothing happens when user enters characters in the field. The logic in the IF block runs fine when a “submit” button is pressed, there’s nothing in there that could break keydown (and it comes after the print block anyway).

Hi @Alex_Klein ,

Could you please check if there are any errors in browser dev-console when “if” is enabled?

Regards, Andriy

No errors… and now (testing just for inspecting console, no changes to code at all) its miraculously working. :roll_eyes: