Removed explicit bindings prop from draggable list as it was overriding bindings added via the listTypeProps. Updated grid config to use listTypeProps instead
This commit is contained in:
parent
799643b227
commit
18777b6fb2
|
@ -12,7 +12,6 @@
|
||||||
export let listItemKey
|
export let listItemKey
|
||||||
export let draggable = true
|
export let draggable = true
|
||||||
export let focus
|
export let focus
|
||||||
export let bindings = []
|
|
||||||
|
|
||||||
let zoneType = generate()
|
let zoneType = generate()
|
||||||
|
|
||||||
|
@ -127,7 +126,6 @@
|
||||||
anchor={anchors[draggableItem.id]}
|
anchor={anchors[draggableItem.id]}
|
||||||
item={draggableItem.item}
|
item={draggableItem.item}
|
||||||
{...listTypeProps}
|
{...listTypeProps}
|
||||||
{bindings}
|
|
||||||
on:change={onItemChanged}
|
on:change={onItemChanged}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -64,7 +64,9 @@
|
||||||
items={columns.sortable}
|
items={columns.sortable}
|
||||||
listItemKey={"_id"}
|
listItemKey={"_id"}
|
||||||
listType={FieldSetting}
|
listType={FieldSetting}
|
||||||
{bindings}
|
listTypeProps={{
|
||||||
|
bindings,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue