diff --git a/dist/js/adminlte.js b/dist/js/adminlte.js index 3290129373cbf9436bc81a29d50e8d29a21e2d7c..bf6d10669390a0e95a3b02dd3ff66a71b1159149 100644 --- a/dist/js/adminlte.js +++ b/dist/js/adminlte.js @@ -1077,7 +1077,7 @@ throw new Error('AdminLTE requires jQuery') parent.addClass(ClassName.open); tree.slideDown(this.options.animationSpeed, function () { - $(this.element).trigger(expandedEvent); + setTimeout(() => $(this.element).trigger(expandedEvent),0) }.bind(this)); }; @@ -1088,7 +1088,7 @@ throw new Error('AdminLTE requires jQuery') parentLi.removeClass(ClassName.open); tree.slideUp(this.options.animationSpeed, function () { //tree.find(Selector.open + ' > ' + Selector.treeview).slideUp(); - $(this.element).trigger(collapsedEvent); + setTimeout(() => $(this.element).trigger(collapsedEvent), 0); }.bind(this)); };