modifierOpenAt -> selectionAt

main
Mike Fix 5 years ago
parent 20b56e9957
commit fc988fefba

@ -140,10 +140,10 @@ class Carbon extends React.PureComponent {
3 3
const left = (startPos.left + endPos.right) / 2 const left = (startPos.left + endPos.right) / 2
this.setState({ modifierOpenAt: { top, left } }) this.setState({ selectionAt: { top, left } })
// this.currentSelection = null // this.currentSelection = null
} else { } else {
this.setState({ modifierOpenAt: null }) this.setState({ selectionAt: null })
} }
}} }}
> >
@ -286,9 +286,9 @@ class Carbon extends React.PureComponent {
<SpinnerWrapper loading={this.props.loading}>{content}</SpinnerWrapper> <SpinnerWrapper loading={this.props.loading}>{content}</SpinnerWrapper>
<div className="twitter-png-fix" /> <div className="twitter-png-fix" />
</div> </div>
{this.state.modifierOpenAt && ( {this.state.selectionAt && (
<SelectionEditor <SelectionEditor
position={this.state.modifierOpenAt} position={this.state.selectionAt}
onChange={changes => { onChange={changes => {
if (this.currentSelection) { if (this.currentSelection) {
const css = [ const css = [

Loading…
Cancel
Save