From b11dc3038f8b8762a63570321c96b5473252c41f Mon Sep 17 00:00:00 2001 From: jos Date: Sun, 22 May 2016 20:40:17 +0200 Subject: [PATCH] Fixed nodes being multi-selected when selecting an enum drop down --- src/js/Node.js | 3 ++- src/js/treemode.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/Node.js b/src/js/Node.js index e0f2d32..7df5b34 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -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(); diff --git a/src/js/treemode.js b/src/js/treemode.js index 7cc1492..f36cdee 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -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); }