bfg-common 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,12 +110,17 @@ const hideMenu = (force?: boolean): void => {
|
|
|
110
110
|
const windowClick = () => {
|
|
111
111
|
hideMenu()
|
|
112
112
|
}
|
|
113
|
+
const windowResize = () => {
|
|
114
|
+
hideMenu(true)
|
|
115
|
+
}
|
|
113
116
|
onMounted(() => {
|
|
114
117
|
collapsedBtnId.value = `collapsed-btn${useUniqueId()}`
|
|
115
118
|
window.addEventListener('mousedown', windowClick)
|
|
119
|
+
window.addEventListener('resize', windowResize)
|
|
116
120
|
})
|
|
117
121
|
onUnmounted(() => {
|
|
118
122
|
window.removeEventListener('mousedown', windowClick)
|
|
123
|
+
window.removeEventListener('resize', windowResize)
|
|
119
124
|
})
|
|
120
125
|
</script>
|
|
121
126
|
|