updated local selected after updating the record value

This commit is contained in:
Gani Georgiev
2026-06-14 18:14:27 +03:00
parent 29b755243c
commit 07471c94d1
7 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -138,8 +138,8 @@ export function input(props) {
hidden: () => local.isLoading,
data: () => local.selected,
onchange: (sortedList) => {
local.selected = sortedList;
updateRecordValue(sortedList.map((r) => r.id));
local.selected = sortedList;
},
dataItem: (record, relIndex) => {
return t.div(
@@ -179,8 +179,8 @@ export function input(props) {
selectedIds: app.utils.toArray(props.record[props.field.name]),
maxSelect: props.field.maxSelect,
onselect: (records) => {
local.selected = records;
updateRecordValue(records.map((r) => r.id));
local.selected = records;
},
});
},