udos86/ng-dynamic-forms

TextArea control on enter throwing an error

Opened this issue · 0 comments

My model has text area

new DynamicTextAreaModel({
id: 'discussion',
label: 'Discussion',
placeholder: 'Discussion',
maxLength: 100,
rows: 5,
cols: 10
})

However when i hit enter to go to next row within text area it gives console error

onloadwff.js:71 Uncaught TypeError: Cannot read property 'type' of undefined
at setFieldValue (onloadwff.js:71)
at HTMLFormElement.formKeydownListener (onloadwff.js:71)