Skip to content

Commit

Permalink
[@mantine/rte] Fix scroll to top and flicker on paste (#1418)
Browse files Browse the repository at this point in the history
* [@mantine/core] Select: only use open/close callback when value changes

* [@mantine/core] Select: do not use early return

* [@mantine/rte] RichTextEditor: fix scroll and flicker on paste
  • Loading branch information
wes337 authored May 9, 2022
1 parent 6f9cd9e commit 0425a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default createStyles(
left: '-100000px',
height: '1px',
overflowY: 'hidden',
position: 'absolute',
position: 'fixed',
top: '50%',
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const RichTextEditor = forwardRef<Editor, RichTextEditorProps>(
ref={mergeRefs(editorRef, ref)}
placeholder={placeholder}
readOnly={readOnly}
scrollingContainer="html"
/>
</Box>
);
Expand Down

0 comments on commit 0425a58

Please sign in to comment.