Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Haythamasalama committed Oct 11, 2023
1 parent 4392f13 commit 18468f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/components/elements/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default defineComponent({
const uiButton = computed<Partial<typeof configButton>>(() => configButton)
const buttonRefs = ref<{open: boolean, close: (e: EventTarget) => {}}[]>([])
const buttonRefs = ref<{ open: boolean, close: (e: EventTarget) => {} }[]>([])
function closeOthers (currentIndex: number, e: Event) {
if (!props.items[currentIndex].closeOthers && props.multiple) {
Expand All @@ -114,7 +114,6 @@ export default defineComponent({
buttonRefs.value.forEach((button) => {
if (button.open) {
// pass the HTMLElement to close method to save the current click button for enter/space press, see #626
button.close(e.target)
}
})
Expand Down

0 comments on commit 18468f4

Please sign in to comment.