mirror of https://github.com/zulip/zulip.git
dropdown_list_widget: Add 'type' attribute to reset button.
Previously, when a user hits 'Enter' key within a input field it incorrectly triggers the dropdown_list_widget's reset button. This is because the reset button had the default type attribute of 'submit' which triggers the click event binded to it. Fixed it by explicitly defining it's type attribute to be a button.
This commit is contained in:
parent
9a64f741ec
commit
056e7d1a36
|
@ -19,7 +19,7 @@
|
|||
</ul>
|
||||
</span>
|
||||
{{#if reset_button_text}}
|
||||
<button class="button small dropdown_list_reset_button">
|
||||
<button class="button small dropdown_list_reset_button" type="button">
|
||||
<a>{{reset_button_text}}</a>
|
||||
</button>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue