Fixed broken highlighting while dragging
This commit is contained in:
parent
ffcae51cd3
commit
b9c8c6a769
|
@ -1539,15 +1539,15 @@ Node.prototype.updateDom = function (options) {
|
||||||
var count = this.childs ? this.childs.length : 0;
|
var count = this.childs ? this.childs.length : 0;
|
||||||
if (this.type == 'array') {
|
if (this.type == 'array') {
|
||||||
domValue.innerHTML = '[' + count + ']';
|
domValue.innerHTML = '[' + count + ']';
|
||||||
this.dom.tr.className = 'jsoneditor-expandable';
|
util.addClassName(this.dom.tr, 'jsoneditor-expandable');
|
||||||
}
|
}
|
||||||
else if (this.type == 'object') {
|
else if (this.type == 'object') {
|
||||||
domValue.innerHTML = '{' + count + '}';
|
domValue.innerHTML = '{' + count + '}';
|
||||||
this.dom.tr.className = 'jsoneditor-expandable';
|
util.addClassName(this.dom.tr, 'jsoneditor-expandable');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
domValue.innerHTML = this._escapeHTML(this.value);
|
domValue.innerHTML = this._escapeHTML(this.value);
|
||||||
this.dom.tr.className = '';
|
util.removeClassName(this.dom.tr, 'jsoneditor-expandable');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue