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:
aryanshridhar 2021-05-15 00:25:17 +05:30 committed by Tim Abbott
parent 9a64f741ec
commit 056e7d1a36
1 changed files with 1 additions and 1 deletions

View File

@ -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}}