Bugfix
This commit is contained in:
parent
4248a36220
commit
31661eac34
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "recogito-client-core",
|
||||
"name": "@recogito/recogito-client-core",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
|
|
@ -54,7 +54,7 @@ export default class SelectionHandler extends EventEmitter {
|
|||
const clientRect = selectedRange.getBoundingClientRect();
|
||||
|
||||
const spans = this.highlighter.wrapRange(selectedRange);
|
||||
spans.forEach(span => span.className = 'selection');
|
||||
spans.forEach(span => span.className = 'r6o-selection');
|
||||
|
||||
this._clearNativeSelection();
|
||||
|
||||
|
@ -81,7 +81,7 @@ export default class SelectionHandler extends EventEmitter {
|
|||
clearSelection = () => {
|
||||
this._currentSelection = null;
|
||||
|
||||
const spans = Array.prototype.slice.call(this.el.querySelectorAll('.selection'));
|
||||
const spans = Array.prototype.slice.call(this.el.querySelectorAll('.r6o-selection'));
|
||||
if (spans) {
|
||||
spans.forEach(span => {
|
||||
const parent = span.parentNode;
|
||||
|
|
Loading…
Reference in New Issue