fix: Padding below editor not clickable
This commit is contained in:
@@ -178,8 +178,8 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const focusAtEnd = React.useCallback(() => {
|
const focusAtEnd = React.useCallback(() => {
|
||||||
ref?.current?.focusAtEnd();
|
localRef?.current?.focusAtEnd();
|
||||||
}, [ref]);
|
}, [localRef]);
|
||||||
|
|
||||||
const handleDrop = React.useCallback(
|
const handleDrop = React.useCallback(
|
||||||
(event: React.DragEvent<HTMLDivElement>) => {
|
(event: React.DragEvent<HTMLDivElement>) => {
|
||||||
@@ -187,7 +187,7 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const files = getDataTransferFiles(event);
|
const files = getDataTransferFiles(event);
|
||||||
|
|
||||||
const view = ref?.current?.view;
|
const view = localRef?.current?.view;
|
||||||
if (!view) {
|
if (!view) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -231,7 +231,7 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
ref,
|
localRef,
|
||||||
props.onFileUploadStart,
|
props.onFileUploadStart,
|
||||||
props.onFileUploadStop,
|
props.onFileUploadStop,
|
||||||
dictionary,
|
dictionary,
|
||||||
|
|||||||
Reference in New Issue
Block a user