diff --git a/components/Carbon.js b/components/Carbon.js index 8ca1198..8f4da83 100644 --- a/components/Carbon.js +++ b/components/Carbon.js @@ -140,10 +140,10 @@ class Carbon extends React.PureComponent { 3 const left = (startPos.left + endPos.right) / 2 - this.setState({ modifierOpenAt: { top, left } }) + this.setState({ selectionAt: { top, left } }) // this.currentSelection = null } else { - this.setState({ modifierOpenAt: null }) + this.setState({ selectionAt: null }) } }} > @@ -286,9 +286,9 @@ class Carbon extends React.PureComponent { {content}
- {this.state.modifierOpenAt && ( + {this.state.selectionAt && ( { if (this.currentSelection) { const css = [