mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:38:51 +00:00
fix: the selected data in the sub table is overwritten by default values (#5075)
This commit is contained in:
parent
84ca0eb296
commit
2c466db7bb
@ -154,6 +154,7 @@ export const SubTable: any = observer(
|
|||||||
onClick() {
|
onClick() {
|
||||||
selectedRows.map((v) => field.value.push(v));
|
selectedRows.map((v) => field.value.push(v));
|
||||||
field.onInput(field.value);
|
field.onInput(field.value);
|
||||||
|
field.initialValue = field.value;
|
||||||
setSelectedRows([]);
|
setSelectedRows([]);
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user