This commit is contained in:
Tom Moor
2024-07-02 19:41:48 -04:00
parent c6408f7b3f
commit b84851a4c3

View File

@@ -93,7 +93,7 @@ function DocumentEditor(props: Props, ref: React.RefObject<any>) {
} = props;
const can = usePolicy(document);
const iconColor = document.color ?? last(colorPalette);
const iconColor = document.color ?? (last(colorPalette) as string);
const childRef = React.useRef<HTMLDivElement>(null);
const focusAtStart = React.useCallback(() => {
if (ref.current) {