Skip to content

Commit

Permalink
Refactor #3233
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 16, 2022
1 parent f809d7b commit 765d365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/sidebar/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div v-if="$slots.header" class="p-sidebar-header-content">
<slot name="header"></slot>
</div>
<button v-if="showCloseIcon" :ref="closeButtonRef" v-ripple type="button" class="p-sidebar-close p-sidebar-icon p-link" :aria-label="closeAriaLabel" @click="hide">
<button v-if="showCloseIcon" :ref="closeButtonRef" v-ripple autofocus type="button" class="p-sidebar-close p-sidebar-icon p-link" :aria-label="closeAriaLabel" @click="hide">
<span :class="['p-sidebar-close-icon', closeIcon]" />
</button>
</div>
Expand Down Expand Up @@ -117,7 +117,7 @@ export default {
focusTarget = this.$slots.header && findFocusableElement(this.headerContainer);
if (!focusTarget) {
focusTarget = this.showCloseIcon ? this.closeButton : null;
focusTarget = findFocusableElement(this.container);
}
}
Expand Down

0 comments on commit 765d365

Please sign in to comment.