@@ -495,7 +495,7 @@ function handleOnDataSaved(_) {
{
+ console.log('1-stateStore.rightDrawer: ', stateStore.rightDrawer);
rightPanel.value = document.querySelector('#right-panel');
if (!rightPanel.value) return;
+ console.log('2-stateStore.rightDrawer: ', stateStore.rightDrawer);
// Check if there's content to display
const observer = new MutationObserver(() => {
hasContent.value = rightPanel.value.childNodes.length;
});
+ console.log('3-stateStore.rightDrawer: ', stateStore.rightDrawer);
observer.observe(rightPanel.value, {
subtree: true,
childList: true,
attributes: true,
});
- if (!slots['right-panel'] && !hasContent.value) stateStore.rightDrawer = false;
+ console.log('4-stateStore.rightDrawer: ', stateStore.rightDrawer);
+ if ((!slots['right-panel'] && !hasContent.value) || isMobile)
+ stateStore.rightDrawer = false;
+ console.log('5-stateStore.rightDrawer: ', stateStore.rightDrawer);
});
const { t } = useI18n();
@@ -45,7 +52,12 @@ const stateStore = useStateStore();
-
+
diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue
index 3d5afaf80..4ce046c09 100644
--- a/src/components/common/VnInputDate.vue
+++ b/src/components/common/VnInputDate.vue
@@ -101,7 +101,7 @@ const styleAttrs = computed(() => {
:class="{ required: $attrs.required }"
:rules="mixinRules"
:clearable="false"
- @click="isPopupOpen = true"
+ @click="isPopupOpen = !isPopupOpen"
hide-bottom-space
>
@@ -120,13 +120,6 @@ const styleAttrs = computed(() => {
isPopupOpen = false;
"
/>
-
{
:no-parent-event="true"
>
{