mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 13:21:55 +08: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.