Fixed #1822 - Click event propagation isn't stopped when closing reveal modals.