From 12611f7701267f618afd16b2020c6987d61651d3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-49I29QK\\zsmj" Date: Fri, 29 Jun 2018 19:04:31 +0800 Subject: [PATCH] update --- src/base/combination/expander.js | 2 +- src/widget/selecttree/selecttree.expander.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/combination/expander.js b/src/base/combination/expander.js index cb8658380..58c3ed70b 100644 --- a/src/base/combination/expander.js +++ b/src/base/combination/expander.js @@ -103,7 +103,7 @@ BI.Expander = BI.inherit(BI.Widget, { } }); break; - default : + case "click": if (e) { self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) { if (self.expander.element.__isMouseInBounds__(e)) { diff --git a/src/widget/selecttree/selecttree.expander.js b/src/widget/selecttree/selecttree.expander.js index 6ce69d1fc..142f3c8ef 100644 --- a/src/widget/selecttree/selecttree.expander.js +++ b/src/widget/selecttree/selecttree.expander.js @@ -7,7 +7,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-select-tree-expander", - trigger: "click", + trigger: "", toggle: true, direction: "bottom", isDefaultInit: true, @@ -20,7 +20,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, { BI.SelectTreeExpander.superclass._init.apply(this, arguments); var self = this, o = this.options; - this.trigger = BI.createWidget(BI.extend({stopPropagation: true}, o.el)); + this.trigger = BI.createWidget(o.el); this.trigger.on(BI.Controller.EVENT_CHANGE, function (type) { if (type === BI.Events.CLICK) { if (this.isSelected()) {