From fc988fefbaa08e64637b57c64be2567fbe027368 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Thu, 8 Aug 2019 16:55:30 -0700 Subject: [PATCH] modifierOpenAt -> selectionAt --- components/Carbon.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = [