View Full Version : Focus gets messed up when destroying a floating panel. requires double click after

21 Jul 2011, 2:53 PM
When you destroy a floating panel it does not pass focus back to the underlying panel that launched it.
After the floating panel is destroyed the first click puts focus on the underlying panel and then the second click is handled properly.

It means it takes 2 clicks to to do anything after destroying a floating panel. I am launching floating panels from list and nestedlist. Both situations exhibit this problem.

The work around is to hide the floating panel before its destroyed.
This is how the action sheets accomplish this task without having the double click issue.

This is the workaround. Add the following to your floating panels:


beforeDestroy : function() {

cancel : function () {
// This is the cancel button in the toolbar that destroys the floating panel



Eric Clapton
29 Jul 2011, 12:12 AM
Thanks pal that helped me very much.I was nearly loosing my mind because of this double click problem.=D>