Skip to content

Commit 23dc20f

Browse files
committed
fix: failure when there’s no property binding on [html]
1 parent e1ce2ba commit 23dc20f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

angular-draft-js/draft-js.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ import { ReactComponentWrapper } from './react.component';
1717

1818
export class DraftBase {
1919
@Input() editorClass: React.Component;
20-
@Input() editorProps: any = {}; // TODO: Type props?
20+
21+
// TODO: Type props?
22+
@Input() editorProps: any = {
23+
editorState: EditorState.createEmpty(),
24+
};
25+
2126
@Input()
2227
set key(key: string) {
2328
this.editorProps = Object.assign({}, this.editorProps, { key: key });

0 commit comments

Comments
 (0)