Combo closes popup prematurely

I am using the ‘Grouping Combo’ sample and it’s working great EXCEPT that when I use it within a popup, the popup closes the moment I choose the first combo item - meaning I cannot choose the second combo nor hit the Submit button unless I re-open the popup for each action.

It behaves as if I clicked outside the popup.

How can I track down the cause and correct it?


TIA
Michael

Hello,

you can try

myPop.attachEvent("onBeforeHide", function(type, ev, id){
					ev_targ = ev.srcElement || ev.target;
						if (ev_targ.parentElement != null && ev_targ.parentElement.className.indexOf('dhxcombo') != -1 && type == "click" ) {
							return false;
						}
						return true;
					});

but old IEs has problem with indexOf.

or try to use something like this :cry: :blush: :
in combo.attachEvent(“onClose”…) variable combo_popup = 1;

and popup.attachEvent(“onHide”…) if (combo_popup == 1) popup.show(id); combo_popup = 0;