diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 8f47954..197d278 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -37,7 +37,7 @@ export default class Editor extends Component { const { selectionBounds } = this.state; const nextBounds = bounds(next.selectedElement); - if (this.props.annotation?.id !== next.annotation.id) { + if (!this.props.annotation?.isEqual(next.annotation)) { this.setState({ currentAnnotation: next.annotation, selectionBounds: nextBounds