Fix memory leak with EditorContext (#1767)

* Fix memory leak with EditorContext

* Fix flow

* Fix prettier
This commit is contained in:
Dominic Gannaway
2022-04-21 19:55:37 +01:00
committed by GitHub
parent 779762d777
commit 8ef3f1cb61
39 changed files with 96 additions and 138 deletions

View File

@ -25,7 +25,7 @@ export class OverflowNode extends ElementNode {
this.__type = 'overflow';
}
createDOM<EditorContext>(config: EditorConfig<EditorContext>): HTMLElement {
createDOM(config: EditorConfig): HTMLElement {
const div = document.createElement('span');
const className = config.theme.characterLimit;
if (typeof className === 'string') {