Browse Source

REPORT-64412 连续选中两次同一选项,编辑框值不对

feature/x
lucian 3 years ago
parent
commit
94c67746ec
  1. 7
      designer-base/src/main/java/com/fr/design/gui/icombobox/TableSearchTreeComboBox.java

7
designer-base/src/main/java/com/fr/design/gui/icombobox/TableSearchTreeComboBox.java

@ -56,6 +56,13 @@ public class TableSearchTreeComboBox extends FRTreeComboBox {
return super.pathToString(path);
}
@Override
public void setSelectedItemString(String _name) {
super.setSelectedItemString(_name);
// 会因为连续两次选中的值一致,导致未触发编辑框联动
this.getEditor().setItem(_name);
}
/**
* 执行模糊搜索
*/

Loading…
Cancel
Save