You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Fix resizer to properly find children
This commit is contained in:
@@ -182,8 +182,6 @@ export default class Resizer<C extends IConfig = IConfig> {
|
|||||||
|
|
||||||
private getResizeHandles() {
|
private getResizeHandles() {
|
||||||
if (!this.container.children) return [];
|
if (!this.container.children) return [];
|
||||||
return Array.from(this.container.children).filter(el => {
|
return Array.from(this.container.querySelectorAll(`.${this.classNames.handle}`)) as HTMLElement[];
|
||||||
return this.isResizeHandle(<HTMLElement>el);
|
|
||||||
}) as HTMLElement[];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user