mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
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.