Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bahadirsofuoglu committed Nov 10, 2022
1 parent ee9a7c9 commit 83ec528
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/sidebar/Sidebar.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<template>
<Portal>
<transition name="p-sidebar" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave" appear>
<div v-if="visible" :ref="containerRef"
v-focustrap :class="containerClass" role="complementary" :aria-modal="modal" :aria-labelledby="ariaId" v-bind="$attrs" >
<div v-if="visible" :ref="containerRef" v-focustrap :class="containerClass" role="complementary" :aria-modal="modal" :aria-labelledby="ariaId" v-bind="$attrs">
<div class="p-sidebar-header">
<div v-if="$slots.header" class="p-sidebar-header-content">
<slot name="header"></slot>
Expand All @@ -23,7 +22,7 @@
import FocusTrap from 'primevue/focustrap';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { DomHandler,UniqueComponentId, ZIndexUtils } from 'primevue/utils';
import { DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
export default {
name: 'Sidebar',
Expand Down Expand Up @@ -61,7 +60,7 @@ export default {
modal: {
type: Boolean,
default: true
},
}
},
mask: null,
documentKeydownListener: null,
Expand Down Expand Up @@ -103,7 +102,7 @@ export default {
}
},
onKeyDown(event) {
if (event.code === 'Escape' ) {
if (event.code === 'Escape') {
this.hide();
}
},
Expand Down Expand Up @@ -178,8 +177,7 @@ export default {
},
containerRef(el) {
this.container = el;
},
}
},
computed: {
containerClass() {
Expand All @@ -200,7 +198,7 @@ export default {
},
ariaId() {
return UniqueComponentId();
},
}
},
directives: {
ripple: Ripple,
Expand Down

0 comments on commit 83ec528

Please sign in to comment.