From 6d2cd199912c493841ed3c9013ada393195cd0f5 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 4 Aug 2020 14:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/allvaluechooser/pane.allvaluechooser.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/component/allvaluechooser/pane.allvaluechooser.js b/src/component/allvaluechooser/pane.allvaluechooser.js index 4c45073419..9983bb42a8 100644 --- a/src/component/allvaluechooser/pane.allvaluechooser.js +++ b/src/component/allvaluechooser/pane.allvaluechooser.js @@ -22,9 +22,6 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { _init: function () { BI.AllValueChooserPane.superclass._init.apply(this, arguments); var self = this, o = this.options; - if (BI.isNotNull(o.items)) { - this.items = o.items; - } this.list = BI.createWidget({ type: "bi.multi_select_list", element: this, @@ -37,6 +34,11 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { this.list.on(BI.MultiSelectList.EVENT_CHANGE, function () { self.fireEvent(BI.AllValueChooserPane.EVENT_CHANGE); }); + + if (BI.isNotNull(o.items)) { + this.items = o.items; + this.list.populate(); + } }, setValue: function (v) {