Skip to content

Commit

Permalink
Fixes a regression from PR #38
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Oct 18, 2021
1 parent 89b3e08 commit 83ebf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextAnnotator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default class TextAnnotator extends Component {

render() {
// The editor should open under normal conditions - annotation was selected, no headless mode
const open = this.state.selectedAnnotation && !this.state.editorDisabled;
const open = (this.state.selectedAnnotation || this.state.selectedRelation) && !this.state.editorDisabled;

const readOnly = this.props.config.readOnly || this.state.selectedAnnotation?.readOnly

Expand Down

0 comments on commit 83ebf23

Please sign in to comment.