fix: Flash of content when selecting text on RHS of document (#2981)

fix: Double portal
This commit is contained in:
Tom Moor
2022-01-22 18:10:23 -08:00
committed by GitHub
parent 80c6e57aa3
commit e8c88b3c33
5 changed files with 79 additions and 81 deletions

View File

@@ -12,7 +12,7 @@ import { selectColumn, selectRow, selectTable } from "prosemirror-utils";
import { Decoration, EditorView } from "prosemirror-view";
import * as React from "react";
import { DefaultTheme, ThemeProps } from "styled-components";
import Extension from "@shared/editor/lib/Extension";
import Extension, { CommandFactory } from "@shared/editor/lib/Extension";
import ExtensionManager from "@shared/editor/lib/ExtensionManager";
import headingToSlug from "@shared/editor/lib/headingToSlug";
import { MarkdownSerializer } from "@shared/editor/lib/markdown/serializer";
@@ -219,7 +219,7 @@ export class Editor extends React.PureComponent<
nodes: { [name: string]: NodeSpec };
marks: { [name: string]: MarkSpec };
commands: Record<string, any>;
commands: Record<string, CommandFactory>;
rulePlugins: PluginSimple[];
componentDidMount() {