materiahq / ngx-monaco-editor

Monaco Editor Library for Angular v6 and above
MIT License
159 stars 35 forks source link

Add default value to callbacks of MonacoEditorComponent #73

Closed guyutongxue closed 2 years ago

guyutongxue commented 2 years ago

When not binding [(ngModel)] to MonacoEditorComponent, callbacks like onTouched, onErrorStatusChange, etc. are undefined and cause a lot of error messages.

I've opened issue #47 earlier this year, and I think this fix is a better solution.

jmarc-roy commented 2 years ago

Thanks @Guyutongxue, it has been included in v6.0.0