diff --git a/ghost/admin/app/components/gh-dropdown.js b/ghost/admin/app/components/gh-dropdown.js index 3225cc0ac3..3bb5b8a28e 100644 --- a/ghost/admin/app/components/gh-dropdown.js +++ b/ghost/admin/app/components/gh-dropdown.js @@ -37,6 +37,7 @@ export default Component.extend(DropdownMixin, { if (event.animationName === 'fade-out' && this.closing) { this.set('isOpen', false); this.set('closing', false); + this.onClose?.(); } }); @@ -61,7 +62,6 @@ export default Component.extend(DropdownMixin, { close() { this.set('closing', true); - this.onClose?.(); if (this.button) { this.set('button.isOpen', false); }