fix href and to attribute clashes

This commit is contained in:
Hayden 2022-10-23 19:46:43 -08:00
parent 9b9141cb7c
commit 198dba60fa

View file

@ -3,7 +3,6 @@
v-if="to" v-if="to"
v-bind="attributes" v-bind="attributes"
ref="submitBtn" ref="submitBtn"
:to="to"
class="btn" class="btn"
:class="{ :class="{
loading: loading, loading: loading,
@ -64,7 +63,7 @@
const attributes = computed(() => { const attributes = computed(() => {
if (props.to) { if (props.to) {
return { return {
href: props.to, to: props.to,
}; };
} }
return { return {