While playing with Ionic I came across an error when pressing enter in a form.
onloadwff.js:71 Uncaught TypeError: Cannot read property 'type' of undefined
at setFieldValue (onloadwff.js:71)
at HTMLFormElement.formKeydownListener (onloadwff.js:71)
You would expect the form to submit if one of the buttons is a submit button.
I tried by adding (keydown.enter)="submitForm()" (ngSubmit)="submitForm()"
to the form
element.
But now enter causes the submitForm to be called twice.