frappe/frappe-ui

Buttons should probably have type="button" by default

Opened this issue · 0 comments

cogk commented

Because without this attribute, buttons have type=submit which is awful in both UX for the blind, could lead to unintentional form submission, and is bad DX for devs (you have to prevent submission when using <form>).

<button
v-bind="$attrs"
:class="buttonClasses"
@click="handleClick"
:disabled="isDisabled"
:ariaLabel="ariaLabel"