From d94a0ce783dee9d8c7f309f7624ef1cf2628c45d Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 13 Sep 2022 12:27:32 +0400 Subject: [PATCH] Add `el` prop to `onEnd` arguments in Resizer. Closes #4579 --- src/utils/Resizer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/Resizer.js b/src/utils/Resizer.js index 888ef49c3..286801738 100644 --- a/src/utils/Resizer.js +++ b/src/utils/Resizer.js @@ -333,6 +333,7 @@ class Resizer { * @param {Event} e */ stop(e) { + const { el } = this; const config = this.opts; const docs = this.docs || this.getDocumentEl(); off(docs, 'pointermove', this.move); @@ -340,7 +341,7 @@ class Resizer { off(docs, 'pointerup', this.stop); this.updateRect(1); this.toggleFrames(); - isFunction(this.onEnd) && this.onEnd(e, { docs, config }); + isFunction(this.onEnd) && this.onEnd(e, { docs, config, el, resizer: this }); delete this.docs; }