From cf3c6c03ee8b257def71d42586bcee1facc8ae50 Mon Sep 17 00:00:00 2001 From: "DESKTOP-49I29QK\\zsmj" Date: Wed, 4 Jul 2018 18:41:54 +0800 Subject: [PATCH] treeValueChooser update --- src/component/treevaluechooser/abstract.treevaluechooser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index da4c738ed..efff1b8c9 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/src/component/treevaluechooser/abstract.treevaluechooser.js @@ -627,6 +627,9 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { _isMatch: function (parentValues, value, keyword) { var node = this._getTreeNode(parentValues, value); + if (!node) { + return false; + } var find = BI.Func.getSearchResult([node.text || node.value], keyword); return find.find.length > 0 || find.match.length > 0; },