Skip to content

Commit

Permalink
fix: int
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySerfaty committed Feb 5, 2024
1 parent af7f15d commit 546f41e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RichText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export const RichText = ({
}, 200);
} else {
setTimeout(() => {
editor.webviewRef.current.injectJavaScript(`
editor.webviewRef.current &&
editor.webviewRef.current.injectJavaScript(`
document.querySelector('.ProseMirror').style.paddingBottom = '0px';
`);
editor.updateScrollThresholdAndMargin(0);
Expand Down

0 comments on commit 546f41e

Please sign in to comment.