mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
Consider a modal with an error element displayed. When a user clicks the submit button, the current behaviour is to empty the element. This empties the inner HTML of the error element, but the CSS makes it still visible, just empty. This looks bad. To avoid this, we hide the element. We use the `ui_report` module to display errors, which adds the `show` class to the error element every time an error is to be displayed. This makes sure that the error element isn't hidden when the user re-clicks the submit button while the modal is still open.
5.3 KiB
5.3 KiB