fastdom: exception in dragresize ui

This commit is contained in:
jean-emmanuel 2022-01-28 16:08:45 +01:00
parent 459a37960c
commit 1930f5465c

View file

@ -156,8 +156,10 @@ class UiDragResize extends UiWidget {
this.initHeight = this.height
fastdom.mutate(()=>{
this.widgets[0].parentNode.appendChild(this.container)
this.mounted = true
if (this.widgets.length) {
this.widgets[0].parentNode.appendChild(this.container)
this.mounted = true
}
})
}