I have a toolbar with the following components. it contains the dhtmlx combo box. Whenever i used ctrl+shift+j to open my chrome debugger or whenever i pay any key, the combo box drops down. pfa.
I am using the following code:
toolbar.addText(“combo”, 8, “Line Width”);
var comboDIV = toolbar.objPull[toolbar.idPrefix + “combo”].obj;
comboDIV.style.margin = ‘1px’;
toolbar.objPull[toolbar.idPrefix + “combo”].obj.innerHTML = “”;
dhtmlx.skin = “dhx_black”;
// var combo = new dhtmlXCombo(“toolbarObj”, “combo”, 50, 5);
var combo = new dhtmlXCombo(comboDIV, “alfa”, 50);
combo.addOption([[“a”, “1”], [“b”, “2”], [“c”, “3”], [“d”, “4”], [“e”, “5”]]);
combo.readonly(true);
combo.selectOption(0, false);
We managed to repeat a problem. It isn’t connected with with dhtmlxCombo any way. It is browser reaction. It distinguishes pressing of these keys as an ‘onclick’ event and opens a combo box.
This worked for me. Thanks for the post. But I am wondering if there is an easier way to get a drop-down (select) into a toolbar now (since this is an old post)?
gfrobenius
We tested it on different environment and it works correctly in all cases.
If you still can reproduce it, please, provide us a demo and your browser/OS/dhtmlx version
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan