diff --git a/components/Carbon.js b/components/Carbon.js index 972836b..2c4acaf 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -291,7 +291,7 @@ class Carbon extends React.PureComponent { {this.state.modifierOpenAt && ( { if (this.currentSelection) { const css = [ diff --git a/components/SelectionEditor.js b/components/SelectionEditor.js index 31cf6fc..34ef896 100644 --- a/components/SelectionEditor.js +++ b/components/SelectionEditor.js @@ -19,7 +19,7 @@ function ModifierButton(props) { ) } -function SelectionEditor({ pos, onChange }) { +function SelectionEditor({ position, onChange }) { const [open, setOpen] = React.useState(false) const [bold, setBold] = React.useState(false) const [italics, setItalics] = React.useState(false) @@ -39,8 +39,8 @@ function SelectionEditor({ pos, onChange }) { pointerLeft="62px" style={{ zIndex: 100, - top: pos.top, - left: pos.left + top: position.top, + left: position.left }} >