mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 17:06:26 +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.