ciao, attaccando il DragAndDrop ad un component (al momento un VerticalLayout) non riesco a ricevere il tipo di DnD effettuato, dropeffect mi da sempre null:
val dropTarget = DropTarget.create(serverBox)
dropTarget.addDropListener { it ->
// move the dragged component to inside the drop target component
val msg = when (it.dropEffect) {
DropEffect.NONE -> "none"
DropEffect.COPY -> "copy"
DropEffect.LINK -> "link"
DropEffect.MOVE -> "move"
else -> "null"
}
showNotification(msg)
}
}
stack di riferimento: spring boot, vaadin14, kotlin