From 0a3c403486012771bcbf8712a5b796fdba73ce9a Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 20 Jun 2017 12:01:54 +0800 Subject: [PATCH] add --- bi/widget.js | 3 +++ docs/widget.js | 3 +++ src/component/treevaluechooser/abstract.treevaluechooser.js | 3 +++ 3 files changed, 9 insertions(+) diff --git a/bi/widget.js b/bi/widget.js index 2d540f5096..0b676040eb 100644 --- a/bi/widget.js +++ b/bi/widget.js @@ -17424,6 +17424,9 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree BI.some(parents, function (i, v) { var t = next[v]; if (t == null) { + if (i === 0) { + return true; + } if (BI.isEmpty(next)) { var split = parents.slice(0, i); var expanded = self._getChildren(split); diff --git a/docs/widget.js b/docs/widget.js index 2d540f5096..0b676040eb 100644 --- a/docs/widget.js +++ b/docs/widget.js @@ -17424,6 +17424,9 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree BI.some(parents, function (i, v) { var t = next[v]; if (t == null) { + if (i === 0) { + return true; + } if (BI.isEmpty(next)) { var split = parents.slice(0, i); var expanded = self._getChildren(split); diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index 4da5924915..d20a7c8501 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/src/component/treevaluechooser/abstract.treevaluechooser.js @@ -185,6 +185,9 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { BI.some(parents, function (i, v) { var t = next[v]; if (t == null) { + if (i === 0) { + return true; + } if (BI.isEmpty(next)) { var split = parents.slice(0, i); var expanded = self._getChildren(split);