1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

Merge pull request #2529 from Budibase/fix-table-binding

Fix table two-way binding of data
This commit is contained in:
Andrew Kingston 2021-09-02 16:09:44 +01:00 committed by GitHub
commit f7abf496e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
import "@spectrum-css/table/dist/index-vars.css"
import CellRenderer from "./CellRenderer.svelte"
import SelectEditRenderer from "./SelectEditRenderer.svelte"
import { cloneDeep } from "lodash"
/**
* The expected schema is our normal couch schemas for our tables.
@ -197,7 +198,7 @@
const editRow = (e, row) => {
e.stopPropagation()
dispatch("editrow", row)
dispatch("editrow", cloneDeep(row))
}
const toggleSelectRow = row => {