mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
We wrap the [reset] anchor tag in a button so that we can set 'disabled' attribute on it. We change the styles to hide the [reset] button and the pencil icon when the widget is disabled. We also need to call `e.preventDefault()` in the event handler since now the anchor tag behaves as a button.