Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Oct 21, 2024
1 parent 1ce4126 commit d63eef9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/media/src/react/image/openImagePreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const openImagePreview = (
) => {
const { id, url } = element;
const urlList = getUrlList(editor);
document.documentElement.style.overflowY = 'hidden';
// document.documentElement.style.overflowY = 'hidden';
imagePreviewActions.openEditorId(editor.id);
imagePreviewActions.currentPreview({ id, url });
imagePreviewActions.previewList(urlList);
Expand Down
2 changes: 1 addition & 1 deletion packages/media/src/react/image/useImagePreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const useImagePreview = ({

const onClose = useCallback(() => {
imagePreviewActions.close();
document.documentElement.style.overflowY = 'scroll';
// document.documentElement.style.overflowY = 'scroll';
}, []);

const [prevDisabled, nextDisabled] = useMemo(
Expand Down

0 comments on commit d63eef9

Please sign in to comment.