Skip to content

Conversation

@JakubEleniuk
Copy link
Contributor

Description

Fixes #2503

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

if (n.locked || !n._rect) return;
for (let n of collides) {
if (n.locked || !n._rect) {
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of course, such a simple fix. if any are locked bailed out of the entire loop...

@adumesny adumesny merged commit ed1e9f0 into gridstack:master Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drag and drop a widget on top of a locked widget

2 participants