I have an application developed in Dojo framework. And in this application I display a floating Pane.
I configured this floatingPane to closable.
So issue here I am facing is, when I close the floatingPane and try to reopen the same, it does not show up and starts throwing errors in console.
This seems to be issue in Dojo Framework itself cause I can face the same issue in their Documentation.
For sample, you can refer to the page: https://dojotoolkit.org/reference-guide/1.10/dojox/layout/FloatingPane.html
in this sample follow below steps to reproduce the issue:
- Click on Run button of Programmatic example
- Click on Show me (It will show the floating pane)
- On the top right corner, click on close button to close
- Click on Show me button again. (This will not work)
This s not a bug , it's already defined as such , if you see the source code of this floating pane , you'll notice the the close button is binded to the
close: function this last hide the widget and after call thethis.destroyRecursive()so the widget is completely destroyed which throws error when trying to show again .SO , you can workaround this by just creating a extending the FloatingPane widget that overrides the close function as below ( hide only the floating pane )
see below working example :