Browse Source

Merge pull request #4293 in DESIGN/design from bugfix/10.0 to feature/10.0

* commit '833136c32a80500029f6c726e20abeb4a8b5c3b3':
  REPORT-52087 单元格元素数据列中首次修改字符不会生效
  REPORT-52087 单元格元素数据列中首次修改字符不会生效
  REPORT-52087 单元格元素数据列中首次修改字符不会生效
feature/10.0
superman 3 years ago
parent
commit
585d6221b5
  1. 8
      designer-base/src/main/java/com/fr/design/gui/icombobox/LazyComboBox.java

8
designer-base/src/main/java/com/fr/design/gui/icombobox/LazyComboBox.java

@ -62,6 +62,12 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen
this.setModel(new DefaultComboBoxModel<>(new Object[]{anObject}));
super.setSelectedItem(anObject);
}
}
private void setSelectedItemWithDocumentChange(Object anObject) {
initialSelected = anObject;
super.setSelectedItem(anObject);
}
@Override
@ -183,7 +189,7 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen
}
filtering = true;
String xx = textField.getText();
LazyComboBox.this.setSelectedItem(xx);
LazyComboBox.this.setSelectedItemWithDocumentChange(xx);
this.item = textField.getText();
setPopupVisible(true);

Loading…
Cancel
Save