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",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
|
|
@ -54,7 +54,7 @@ export default class SelectionHandler extends EventEmitter {
|
||||||
const clientRect = selectedRange.getBoundingClientRect();
|
const clientRect = selectedRange.getBoundingClientRect();
|
||||||
|
|
||||||
const spans = this.highlighter.wrapRange(selectedRange);
|
const spans = this.highlighter.wrapRange(selectedRange);
|
||||||
spans.forEach(span => span.className = 'selection');
|
spans.forEach(span => span.className = 'r6o-selection');
|
||||||
|
|
||||||
this._clearNativeSelection();
|
this._clearNativeSelection();
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ export default class SelectionHandler extends EventEmitter {
|
||||||
clearSelection = () => {
|
clearSelection = () => {
|
||||||
this._currentSelection = null;
|
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) {
|
if (spans) {
|
||||||
spans.forEach(span => {
|
spans.forEach(span => {
|
||||||
const parent = span.parentNode;
|
const parent = span.parentNode;
|
||||||
|
|
Loading…
Reference in New Issue