From 27dbd172b04a88460dc0d9e4cd6010fd68dacbf1 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Mon, 23 Aug 2021 16:18:14 +0200 Subject: [PATCH] Fix resizer to properly find children --- src/resizer/resizer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/resizer/resizer.ts b/src/resizer/resizer.ts index e430c68e17..0496615188 100644 --- a/src/resizer/resizer.ts +++ b/src/resizer/resizer.ts @@ -182,8 +182,6 @@ export default class Resizer { private getResizeHandles() { if (!this.container.children) return []; - return Array.from(this.container.children).filter(el => { - return this.isResizeHandle(el); - }) as HTMLElement[]; + return Array.from(this.container.querySelectorAll(`.${this.classNames.handle}`)) as HTMLElement[]; } }