8000 Reactive Form: There is no FormControl instance attached to form control element with name · Issue #187 · KillerCodeMonkey/ngx-quill · GitHub
[go: up one dir, main page]

Skip to content
Reactive Form: There is no FormControl instance attached to form control element with name #187
@fkizewski

Description

@fkizewski

Hi,

I need your help, because with my reactive form i have an error and the entire form is not initialized when i change the "object" to the form.

I load the object from our API, after that I convert the object to a FormGroup and i put it into the form. So for the first time all is fine.
If i change dynamically the object loaded (before that I reset the form), I have this error:

ERROR Error: There is no FormControl instance attached to form control element with name: 'objective'
at _throwError (forms.js:2432)
at _noControlError (forms.js:2414)
at QuillEditorComponent.eval [as onModelChange] (forms.js:2328)
at eval (quill-editor.component.js:123)
at ZoneDelegate.invoke (zone.js:388)
at Object.onInvoke (core.js:4733)
at ZoneDelegate.invoke (zone.js:387)
at Zone.run (zone.js:138)
at NgZone.run (core.js:4550)
at Emitter.eval (quill-editor.component.js:122)

In my form.component.html i have this line to use quill-editor (quillEditorConfig is simply my config of the toolbar):
<quill-editor [modules]="quillEditorConfig" formControlName="objective" placeholder="Describe your objectives"></quill-editor>

I have make some search and try to fix it but without success.
I'm on the version 2.1.1 and i've try the 2.2.0, same problem for me.

So do you have some tips to help me?
Thanks for your help, Fabrice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0