feat: remove keepInBounds

This commit is contained in:
Philipp Kühn
2021-04-16 10:46:50 +02:00
parent 9335858392
commit d7282f168b
5 changed files with 2 additions and 18 deletions

View File

@@ -9,12 +9,11 @@ export const BubbleMenu: React.FC<BubbleMenuProps> = props => {
const element = useRef<HTMLDivElement>(null)
useEffect(() => {
const { editor, keepInBounds = true } = props
const { editor } = props
editor.registerPlugin(BubbleMenuPlugin({
editor,
element: element.current as HTMLElement,
keepInBounds,
}))
return () => {