Added onAnnotationSelected call
This commit is contained in:
parent
71f390b316
commit
3f4e6a85ec
|
@ -70,7 +70,10 @@ export default class TextAnnotator extends Component {
|
||||||
}, () => this.setState({
|
}, () => this.setState({
|
||||||
selectedAnnotation: selection,
|
selectedAnnotation: selection,
|
||||||
selectedDOMElement: element
|
selectedDOMElement: element
|
||||||
}))
|
}));
|
||||||
|
|
||||||
|
if (!selection.isSelection)
|
||||||
|
this.props.onAnnotationSelected(selection.clone());
|
||||||
} else {
|
} else {
|
||||||
this.clearState();
|
this.clearState();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue