Hide the selected component when dragging
This commit is contained in:
parent
a0ab832995
commit
eb1dbc7302
|
@ -48,14 +48,14 @@ const createScreenStore = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert DND placeholder if required
|
// Insert DND placeholder if required
|
||||||
const { dndParent, dndIndex } = $builderStore
|
const { dndParent, dndIndex, selectedComponentId } = $builderStore
|
||||||
const insert = true
|
const insert = true
|
||||||
if (insert && activeScreen && dndParent && dndIndex != null) {
|
if (insert && activeScreen && dndParent && dndIndex != null) {
|
||||||
// let selectedComponent = findComponentById(
|
let selectedComponent = findComponentById(
|
||||||
// activeScreen.props,
|
activeScreen.props,
|
||||||
// selectedComponentId
|
selectedComponentId
|
||||||
// )
|
)
|
||||||
// delete selectedComponent._component
|
delete selectedComponent._component
|
||||||
const placeholder = {
|
const placeholder = {
|
||||||
_component: "placeholder",
|
_component: "placeholder",
|
||||||
_id: "placeholder",
|
_id: "placeholder",
|
||||||
|
|
Loading…
Reference in New Issue