Fixed nodes being multi-selected when selecting an enum drop down

This commit is contained in:
jos 2016-05-22 20:40:17 +02:00
parent 40c1b887e7
commit b11dc3038f
2 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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);
}