layout.cell.attachUrl dock(), undock() Cannot set property 'onload' of null

Use attachurl, undock () has no problem, but dock () throws an error.

How do you solve it?


Please, try to call the dock() from the onContentLoaded event:
If the problem still occurs for you please, provide a complete demo or a demo link, where the problem can be reconstructed locally.