mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 05:14:59 +00:00
bd7823cc70
The bug was due to the fact that the `<DModal />` is displayed inside a if block, when the condition was false to close the menu, the modal was just hidden without calling callbacks. The fix ensures we are correctly calling `modal.close()` before in this case.