Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc08928

Browse files
authored
Merge pull request gridstack#2035 from adumesny/master
`removeWidget()` breaking resize handle feedback
2 parents 818101c + 54e8508 commit bc08928

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8+
- [6.0.1-dev (TBD)](#601-dev-tbd)
89
- [6.0.1 (2022-08-27)](#601-2022-08-27)
910
- [6.0.0 (2022-08-21)](#600-2022-08-21)
1011
- [5.1.1 (2022-06-16)](#511-2022-06-16)
@@ -69,6 +70,10 @@ Change log
6970
- [v0.1.0 (2014-11-18)](#v010-2014-11-18)
7071

7172
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
73+
74+
## 6.0.1-dev (TBD)
75+
* fixed [#2034](https://github.com/gridstack/gridstack.js/issues/2034) `removeWidget()` breaking resize handle feedback
76+
7277
## 6.0.1 (2022-08-27)
7378
* fixed `float(val)` to set on grid and engine, so save() will read it.
7479
* fixed [#2018](https://github.com/gridstack/gridstack.js/issues/2018) mouseover and React different behavior

src/dd-resizable.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ export class DDResizable extends DDBaseImplement implements HTMLElementExtendOpt
118118
this.el.classList.remove('ui-resizable-autohide');
119119
this.el.removeEventListener('mouseover', this._mouseOver);
120120
this.el.removeEventListener('mouseout', this._mouseOut);
121+
if (DDManager.overResizeElement === this) {
122+
delete DDManager.overResizeElement;
123+
}
121124
}
122125
return this;
123126
}

0 commit comments

Comments
 (0)