mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-30 00:40:24 +01:00
updated local selected after updating the record value
This commit is contained in:
1 parent
29b755243c
commit
07471c94d1
7 files changed
+9
-9
No files matched your search
@@ -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;
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user