mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Fix memory leak with EditorContext (#1767)
* Fix memory leak with EditorContext * Fix flow * Fix prettier
This commit is contained in:
@ -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') {
|
||||
|
Reference in New Issue
Block a user