Release 0.7.1
martinpengellyphillips
released this
11 Sep 20:00
·
27 commits
to main
since this release
Added
- Emit more useful warnings when attempting to remove nonexistent items. Rather
than fail with error (Cannot read properties of undefined
), emit an
appropriate console warning instead and then return.
Fixed
-
Ensure layouts recomputed before other effects on drag start. Without this,
issues could occur where collisions were detected against stale positions and
items moved incorrectly as a result. In addition, layouts might not have been
recomputed correctly on drag end if adjustments were made by custom
onDragEnd
handlers. Now, core behaviour such asrecomputeLayouts
and
detectCollisions
is called explicitly as part ofdragStart
anddragEnd
to ensure correct ordering. -
Don't apply redundant adjustment transformer when a drag overlay is used.
-
Improve typings for
DragOverlay
to better describe function form.