diff --git a/packages/nc-gui/components/smartsheet/Gallery.vue b/packages/nc-gui/components/smartsheet/Gallery.vue index 2834ea2bc6..1615073b58 100644 --- a/packages/nc-gui/components/smartsheet/Gallery.vue +++ b/packages/nc-gui/components/smartsheet/Gallery.vue @@ -148,9 +148,8 @@ const expandForm = (row: RowType, state?: Record) => { const expandFormClick = async (e: MouseEvent, row: RowType) => { const target = e.target as HTMLElement - if (target && !target.closest('.gallery-carousel')) { - expandForm(row) - } + if (target.closest('.arrow')) return + expandForm(row) } openNewRecordFormHook?.on(async () => { @@ -263,7 +262,6 @@ watch( v-if="!reloadAttachments && attachments(record).length" class="gallery-carousel !border-b-1 !border-gray-200" arrows - @click="expandFormClick($event, record)" >