mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
* After this change the bookmark will still be saved if clicking out of the modal or pressing escape * To achieve this I implemented an initiatedBy parameter for modal closing from d-modal. If clicking on the cross it is initiated by close, if clicking out of the modal it is by click out. * These options can then be compared in controllers consuming onClose Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>