Bug: attaching a grid to collapsible layout cell


#1

Hello,

There is a bug in DHTMLX Suite 7.0 which makes the whole layout system fail when a panel is collapsed (by user click) and expanded again when a grid is added to a collapsible layout cell.

Example snippet here:
https://snippet.dhtmlx.com/7t59618v

( This was minimally changed from the ‘Layout. Collapsable’ example )

Collapse works fine, but when restoring, the error produced in the console is like :

Uncaught TypeError: el is null
patch domvm.micro.js:1224
redrawSync domvm.micro.js:1647
hydrateBody domvm.micro.js:994
hydrate domvm.micro.js:1017
hydrateBody domvm.micro.js:986
hydrate domvm.micro.js:1017
hydrateBody domvm.micro.js:986
hydrate domvm.micro.js:1017
syncDir domvm.micro.js:1073
syncChildren domvm.micro.js:1135
patchChildren domvm.micro.js:1427
patch domvm.micro.js:1246
patchChildren domvm.micro.js:1376
patch domvm.micro.js:1246
redrawSync domvm.micro.js:1647
redraw domvm.micro.js:1511
_redrawAsync domvm.micro.js:1453
call domvm.micro.js:139
raft domvm.micro.js:145
redraw domvm.micro.js:1511
paint Cell.ts:60
paint Cell.ts:62
expand Cell.ts:113
toggle Cell.ts:125
toggle Cell.ts:364
bindEv domvm.micro.js:845
patchEvent domvm.micro.js:899
patchAttrs domvm.micro.js:953
hydrate domvm.micro.js:1011
hydrateBody domvm.micro.js:986
hydrate domvm.micro.js:1017
hydrateBody domvm.micro.js:986
hydrate domvm.micro.js:1017
redrawSync domvm.micro.js:1650
mount domvm.micro.js:1544
mount view.ts:35
Layout Layout.ts:34

I’d love to know when this bug gets fixed! Or if there are any workarounds …

Many thanks,
QA


#2

Set container to null and error doesn’t appear

grid = new dhx.Grid(null, {


#3

Great to know! Thankyou!! Although still a bit bizarre…might wanna add that to the backlog :slight_smile:


#4

Also, I think there is something seriously wrong with the configuration of your forum website - my original post which started this topic has been flagged as spam ?!


#5

Could you please, clarify where it is hidden from. The topic seems to display well for me.