Skip to content

The raiser may get stuck on some element. #3082 #3083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025

Conversation

catakot
Copy link
Contributor

@catakot catakot commented Jun 30, 2025

Description

fix #3082

The _mouseOut may not clear the overResizeElement properly because there is already another component in the overResizeElement.

@@ -132,7 +132,7 @@ export class DDResizable extends DDBaseImplement implements HTMLElementExtendOpt
protected _mouseOver(e: Event): void {
// console.log(`${count++} pre-enter ${(this.el as GridItemHTMLElement).gridstackNode._id}`)
// already over a child, ignore. Ideally we just call e.stopPropagation() but see https://github.com/gridstack/gridstack.js/issues/2018
if (DDManager.overResizeElement || DDManager.dragElement) return;
if (DDManager.overResizeElement === this || DDManager.dragElement) return;
DDManager.overResizeElement = this;
Copy link
Member

@adumesny adumesny Jun 30, 2025

Choose a reason for hiding this comment

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

by doing this you are not clearing the other (if any) element style at line 148 this.el.classList.add('ui-resizable-autohide') so now 2 items are showing resize ?
would be relly helpfull to have a running example to test the issue first...

Copy link
Member

@adumesny adumesny Jul 6, 2025

Choose a reason for hiding this comment

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

this totally breaks nested.html and other nested grid demos. will revert as incorrect fix...

@adumesny adumesny merged commit 813db25 into gridstack:master Jul 6, 2025
adumesny added a commit to adumesny/gridstack.js that referenced this pull request Jul 6, 2025
revert fix gridstack#3082 as that is incorrect fix and breaks nested grids as I suspected.
adumesny added a commit that referenced this pull request Jul 6, 2025
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.

The raiser may get stuck on some element.
2 participants