Skip to content

Commit da60b1c

Browse files
authored
Merge pull request #878 from Sysvale/bugfix/fix-sidebar-profile-click
Bugfix/fix sidebar profile click
2 parents e46b315 + f72ff3b commit da60b1c

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.100.1",
3+
"version": "3.100.2",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

src/components/SideBar.vue

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,7 @@
262262
width="160"
263263
height="160"
264264
>
265-
<div
266-
ref="sideBarRef"
267-
class="dropdown-button__dropdown"
268-
>
265+
<div class="dropdown-button__dropdown">
269266
<div
270267
v-for="(item, index) in profileMenuItems"
271268
:key="index"
@@ -531,10 +528,6 @@ export default {
531528
});
532529
},
533530
534-
mounted() {
535-
document.querySelector('body').addEventListener('click', this.closeSideBar);
536-
},
537-
538531
methods: {
539532
colorHexCode,
540533
@@ -623,16 +616,6 @@ export default {
623616
*/
624617
this.$emit('logo-click');
625618
},
626-
627-
closeSideBar(event) {
628-
if (
629-
this.$refs.sideBarRef
630-
&& !this.$refs.sideBarRef.contains(event.target)
631-
&& this.showPopover
632-
) {
633-
this.showPopover = false;
634-
}
635-
},
636619
},
637620
};
638621
</script>

0 commit comments

Comments
 (0)