Skip to content

Commit

Permalink
Remove unnecessary state check in DropDownItem
Browse files Browse the repository at this point in the history
  • Loading branch information
zysim committed May 5, 2024
1 parent c5e1fb6 commit bf0e0fd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions components/elements/buttons/DropDown/DropDownItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ function hide() {
</script>

<template>
<button
:class="['container', state.active.value && 'selected']"
@click="hide"
>
<button class="container" data-testid="container" @click="hide">
<slot />
</button>
</template>
Expand All @@ -27,7 +24,7 @@ function hide() {
.container {
@apply py-2 text-center border border-t-0 border-gray-200 hover:bg-gray-100;
&.selected:first {
&:first {
@apply pt-4;
}
}
Expand Down

0 comments on commit bf0e0fd

Please sign in to comment.