Skip to content

Commit

Permalink
refactor: replace the button root node in related-prompt.vue with a div
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramargar committed Dec 17, 2024
1 parent b23fbb3 commit e6853b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<button
<div
@click="toggleSuggestion(index)"
@keydown="toggleSuggestion(index)"
class="x-related-prompt__button"
:class="[{ 'x-related-prompt-selected__button': isSelected }]"
>
Expand All @@ -20,7 +21,7 @@
<CrossTinyIcon v-if="isSelected" class="x-icon-lg" />
<PlusIcon v-else class="x-icon-lg" />
</slot>
</button>
</div>
</template>
<script lang="ts">
import { defineComponent, PropType } from 'vue';
Expand Down

0 comments on commit e6853b2

Please sign in to comment.