diff --git a/src/base/combination/expander.js b/src/base/combination/expander.js index cb86583800..58c3ed70bf 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 6ce69d1fcb..142f3c8ef6 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()) {