assets/js/romo/dropdown.js in romo-0.14.0 vs assets/js/romo/dropdown.js in romo-0.14.1

- old
+ new

@@ -75,10 +75,15 @@ } }) // the popup should be treated like a child elem. add it to Romo's // parent-child elems so it will be removed when the elem is removed. - Romo.parentChildElems.add(this.elem, [this.popupElem]); + // delay adding it b/c other components may `append` generated dropdowns + // meaning the dropdown is removed and then re-added. if added immediately + // the "remove" part will incorrectly remove the popup. + setTimeout($.proxy(function() { + Romo.parentChildElems.add(this.elem, [this.popupElem]); + }, this), 1); } RomoDropdown.prototype.doInitBody = function() { this.doResetBody();