recogito-js
recogito-js copied to clipboard
Changing readOnly doesn't affect relationship mode
Not covered by PR #54 yet.
Probably won't ever address this, since relationship mode is essentially marked for deprecation now, in favour of the upcoming Connections Plugin.
@rsimon I checked the code . If we add 'this.relationsLayer.readOnly = readOnly;' i see that it works as expected. but the documention says we should do that only from set mode.
set readOnly(readOnly) {
this.selectionHandler.readOnly = readOnly;
this.relationsLayer.readOnly = readOnly;
// Note: relationsHandler.readOnly should be set by setMode.
this.setState({ readOnly });
}
Does it mean we should set Mode as Relations if readonly is set as false ?