Browse Source
Merge pull request #2529 from Budibase/fix-table-binding
Fix table two-way binding of data
pull/2539/head
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
packages/bbui/src/Table/Table.svelte
|
|
|
@ -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 => { |
|
|
|
|