Fix issue editing components in the preview when nested inside another draggable component
This commit is contained in:
parent
232957f610
commit
90403948dd
|
@ -67,7 +67,8 @@
|
||||||
$: renderKey = `${propsHash}-${emptyState}`
|
$: renderKey = `${propsHash}-${emptyState}`
|
||||||
$: editable = definition.editable
|
$: editable = definition.editable
|
||||||
$: editing = editable && selected && $builderStore.editMode
|
$: editing = editable && selected && $builderStore.editMode
|
||||||
$: draggable = interactive && !isLayout && !isScreen && !editing
|
$: draggable =
|
||||||
|
interactive && !isLayout && !isScreen && !$builderStore.editMode
|
||||||
$: droppable = interactive && !isLayout && !isScreen
|
$: droppable = interactive && !isLayout && !isScreen
|
||||||
|
|
||||||
// Update component context
|
// Update component context
|
||||||
|
|
|
@ -42,7 +42,7 @@ export const styleable = (node, styles = {}) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allow dragging if required
|
// Allow dragging if required
|
||||||
node.setAttribute("draggable", !!styles.draggable)
|
node.setAttribute("draggable", !!newStyles.draggable)
|
||||||
|
|
||||||
// Applies a style string to a DOM node
|
// Applies a style string to a DOM node
|
||||||
const applyStyles = styleString => {
|
const applyStyles = styleString => {
|
||||||
|
|
Loading…
Reference in New Issue