Fixed nodes being multi-selected when selecting an enum drop down
This commit is contained in:
parent
40c1b887e7
commit
b11dc3038f
|
@ -2234,7 +2234,8 @@ Node.prototype.onEvent = function (event) {
|
|||
this.dom.value.innerHTML = !this.value;
|
||||
this._getDomValue();
|
||||
}
|
||||
//Update the value of the node based on the selected option
|
||||
|
||||
// update the value of the node based on the selected option
|
||||
if (type == 'change' && target == dom.select) {
|
||||
this.dom.value.innerHTML = dom.select.value;
|
||||
this._getDomValue();
|
||||
|
|
|
@ -819,7 +819,7 @@ treemode._onEvent = function (event) {
|
|||
// drag a singe node
|
||||
Node.onDragStart(node, event);
|
||||
}
|
||||
else if (!node || (event.target != node.dom.field && event.target != node.dom.value)) {
|
||||
else if (!node || (event.target != node.dom.field && event.target != node.dom.value && event.target != node.dom.select)) {
|
||||
// select multiple nodes
|
||||
this._onMultiSelectStart(event);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue