event.preventDefault() was called for every keyDown event on the document. This resulted in swallowed keydown events, and made inputFields not work at all.
I tried to add a test, but was not able to make it "fail" with the previous implementation. Eg. when I did fireEvent.keyDown, the value of the input-field was correct - but in reality it's not working.
Fixes https://dhis2.atlassian.net/browse/LIBS-627
Description
event.preventDefault()
was called for everykeyDown
event on the document. This resulted in swallowed keydown events, and made inputFields not work at all.I tried to add a test, but was not able to make it "fail" with the previous implementation. Eg. when I did
fireEvent.keyDown
, the value of the input-field was correct - but in reality it's not working.Checklist