Explorar el Código

Internal: Widget resize upon its destroy should also destroy any resizer that it maintains.

Marek Lewandowski hace 6 años
padre
commit
23343d0f05
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      packages/ckeditor5-widget/src/widgetresize.js

+ 4 - 0
packages/ckeditor5-widget/src/widgetresize.js

@@ -105,6 +105,10 @@ export default class WidgetResize extends Plugin {
 
 	destroy() {
 		this._observer.stopListening();
+
+		for ( const resizer of this._resizers.values() ) {
+			resizer.destroy();
+		}
 	}
 
 	/**