Browse Source

Pull request #2952: 无JIRA fix: value为null时选中状态处理

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit 'dfc22c2c9779a4f78ea6a56702c57dd18cbfddb8':
  无JIRA fix: value为null时选中状态处理
es6
Dailer 2 years ago
parent
commit
4ee5ad1e5b
  1. 2
      src/base/combination/group.button.js

2
src/base/combination/group.button.js

@ -236,7 +236,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
setValueMap: function (map) {
map = map || {};
BI.each(this.buttons, function (i, item) {
if (BI.isNotNull(map[item.getValue()])) {
if (BI.has(map, item.getValue())) {
item.setSelected && item.setSelected(true);
} else {
item.setSelected && item.setSelected(false);

Loading…
Cancel
Save