Skip to content

Commit db37b97

Browse files
committed
fix(ngx-jodit-pro): ngModel [(value)] not working for outside changes
1 parent d63a4ba commit db37b97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libs/ngx-jodit-pro/src/lib/ngx-jodit-pro/ngx-jodit-pro.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,16 @@ export class NgxJoditProComponent implements AfterViewInit, OnDestroy, OnChanges
5858
const options = changes['options'].currentValue;
5959

6060
if (options) {
61-
console.log('changed options');
6261
this.initJoditContainer();
6362
}
6463
}
64+
65+
if(changes["value"]){
66+
this._value = changes["value"].currentValue;
67+
if(this.jodit){
68+
this.jodit.value = this._value;
69+
}
70+
}
6571
}
6672

6773
ngAfterViewInit() {

0 commit comments

Comments
 (0)