diff --git a/dist/select.js b/dist/select.js index 98a96fc..f6da40e 100644 --- a/dist/select.js +++ b/dist/select.js @@ -177,13 +177,14 @@ _parameter_Window.addEventListener("click", hideMenu); } function showDropDownMenu(e, control, dropDown, element, bindingOptions) { - cancelBubble(e); - if (dropDown !== null && dropDown.style.display !== "block") { - dropDown.style.display = "block"; - renderDropDownItems(control, dropDown, element, bindingOptions); - } else { - hideDropDownMenu(dropDown); - } + setTimeout(function() { + if (dropDown !== null && dropDown.style.display !== "block") { + dropDown.style.display = "block"; + renderDropDownItems(control, dropDown, element, bindingOptions); + } else { + hideDropDownMenu(dropDown); + } + }, 50); } function hideDropDownMenu(dropDown) { if (dropDown !== null && dropDown.style.display !== "none") { diff --git a/dist/select.min.js b/dist/select.min.js index 3d93cda..e01f1c4 100644 --- a/dist/select.min.js +++ b/dist/select.min.js @@ -1,9 +1,9 @@ /*! Select.js v0.1.0 | (c) Bunoon | MIT License */ -(function(){function M(a,c,b){var f=q("div","control");a.appendChild(f);var d=q("div","drop-down");d.style.display="none";a.appendChild(d);f.onclick=function(l){C(l);null!==d&&"block"!==d.style.display?(d.style.display="block",H(f,d,c,b)):y(d)};return{control:f,dropDown:d}}function H(a,c,b,f){var d=b.options.length,l=b.hasAttribute("multiple");c.innerHTML=w.empty;for(var k=0;k