mirror of https://github.com/vector-im/riot-web
Fix resizer to properly find children
parent
b1a2f16e43
commit
27dbd172b0
|
@ -182,8 +182,6 @@ export default class Resizer<C extends IConfig = IConfig> {
|
|||
|
||||
private getResizeHandles() {
|
||||
if (!this.container.children) return [];
|
||||
return Array.from(this.container.children).filter(el => {
|
||||
return this.isResizeHandle(<HTMLElement>el);
|
||||
}) as HTMLElement[];
|
||||
return Array.from(this.container.querySelectorAll(`.${this.classNames.handle}`)) as HTMLElement[];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue