Prevent dragging into other blocks for connection block

This commit is contained in:
Emir Karabeg
2025-01-21 21:44:10 -08:00
parent 51835e9aa6
commit 428ec5a45f
@@ -34,7 +34,10 @@ export function ShortInput({
e.preventDefault()
try {
const data = JSON.parse(e.dataTransfer.getData('application/json'))
if (data.type === 'connectionBlock') {
if (
data.type === 'connectionBlock' &&
data.connectionData.sourceBlockId === blockId
) {
const currentValue = value?.toString() ?? ''
const newValue =
currentValue +