Display: Allow to set the name attribute to BaseButton component

pull/6053/head
Angel Fernando Quiroz Campos 9 months ago
parent a21a5c23ce
commit 0f108f5475
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 6
      assets/vue/components/basecomponents/BaseButton.vue

@ -13,6 +13,7 @@
:text="onlyIcon"
:title="tooltip || (onlyIcon ? label : undefined)"
:type="isSubmit ? 'submit' : 'button'"
:name="name"
class="cursor-pointer"
@click="$emit('click', $event)"
/>
@ -70,6 +71,11 @@ const props = defineProps({
type: String,
default: "", // This ensures that popupIdentifier is still present
},
name: {
type: String || undefined,
required: false,
default: undefined,
},
})
defineEmits(["click"])

Loading…
Cancel
Save