Skip to content

Commit

Permalink
fix(components): set button types (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli authored Sep 15, 2024
1 parent 634d757 commit 3055d42
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/runtime/components/CookieControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@
</slot>
</div>
<div class="cookieControl__BarButtons">
<button @click="accept()" v-text="localeStrings?.accept" />
<button
type="button"
@click="accept()"
v-text="localeStrings?.accept"
/>
<button
v-if="moduleOptions.isAcceptNecessaryButtonEnabled"
type="button"
@click="decline()"
v-text="localeStrings?.decline"
/>
<button
type="button"
@click="isModalActive = true"
v-text="localeStrings?.manageCookies"
/>
Expand Down Expand Up @@ -59,6 +65,7 @@
<button
v-if="!moduleOptions.isModalForced"
class="cookieControl__ModalClose"
type="button"
@click="isModalActive = false"
v-text="localeStrings?.close"
/>
Expand Down Expand Up @@ -102,7 +109,7 @@
"
@change="toogleCookie(cookie)"
/>
<button @click="toggleButton($event)">
<button type="button" @click="toggleButton($event)">
{{ getName(cookie.name) }}
</button>
<label
Expand Down Expand Up @@ -160,6 +167,7 @@
</template>
<div class="cookieControl__ModalButtons">
<button
type="button"
@click="
() => {
acceptPartial()
Expand All @@ -169,6 +177,7 @@
v-text="localeStrings?.save"
/>
<button
type="button"
@click="
() => {
accept()
Expand All @@ -179,6 +188,7 @@
/>
<button
v-if="!moduleOptions.isModalForced"
type="button"
@click="
() => {
declineAll()
Expand Down

0 comments on commit 3055d42

Please sign in to comment.