suppport disabling context menu in custom elements

This commit is contained in:
ad1992 2022-04-22 00:56:17 +05:30
parent 2e8c4d25f2
commit db9c9eb3d2
7 changed files with 24 additions and 7 deletions

View file

@ -11,7 +11,7 @@ import {
WINDOWS_EMOJI_FALLBACK_FONT,
} from "./constants";
import { FontFamilyValues, FontString } from "./element/types";
import { AppState, DataURL, ExcalidrawProps, Zoom } from "./types";
import { AppProps, AppState, DataURL, Zoom } from "./types";
import { unstable_batchedUpdates } from "react-dom";
import { isDarwin } from "./keys";
@ -627,7 +627,7 @@ export const getFrame = () => {
};
export const getCustomElementConfig = (
customElementConfig: ExcalidrawProps["customElementsConfig"],
customElementConfig: AppProps["customElementsConfig"],
customType: string,
) => {
if (!customElementConfig) {