In a component, I am using the same library twice (out of necessity). When you submit the form, only one component is cleaned, when in fact both should be cleaned.
I don't know why a component is only cleaned.
Can someone identify the problem or how can I delete the data in the two components?
CODE
@ViewChild(DxHtmlEditorComponent, {static: false}) dxHtmlEditor;
clearAll(){
this.dxHtmlEditor.instance.reset();
alert("clear works!")
}
html
<dx-html-editor>
<dxi-mention
valueExpr="text"
displayExpr="text"
[dataSource]="employees"
></dxi-mention>
</dx-html-editor>
<dx-html-editor>
<dxi-mention
valueExpr="id"
displayExpr="text"
[dataSource]="users"
></dxi-mention>
</dx-html-editor>