mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +08:00
PL-8586 IllegalStateException when refreshing datasource if DataGrid SelectionMode is NONE
This commit is contained in:
parent
0daaf5b88c
commit
68ebe2f2ce
@ -899,6 +899,10 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
|
||||
|
||||
@Override
|
||||
public void setSelected(@Nullable E item) {
|
||||
if (getSelectionMode().equals(SelectionMode.NONE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (item == null) {
|
||||
component.deselectAll();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user