Browse Source

fix/Fixed scroll issue with EditOrAdd component fixed for edit

pull/3495/head
Muhammed Mustafa 2 years ago
parent
commit
2e8de5c384
  1. 14
      packages/nc-gui-v2/components/smartsheet-header/Cell.vue
  2. 14
      packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue

14
packages/nc-gui-v2/components/smartsheet-header/Cell.vue

@ -15,12 +15,6 @@ const { isUIAllowed } = useUIPermission()
provide(ColumnInj, column)
const editColumnDropdown = ref(false)
function onVisibleChange() {
// only allow to close the EditOrAdd component
// by clicking cancel button
editColumnDropdown.value = true
}
</script>
<template>
@ -34,13 +28,7 @@ function onVisibleChange() {
<SmartsheetHeaderMenu v-if="!isForm && isUIAllowed('edit-column')" @edit="editColumnDropdown = true" />
</template>
<a-dropdown
v-model:visible="editColumnDropdown"
class="h-full"
:trigger="['click']"
placement="bottomRight"
@visible-change="onVisibleChange"
>
<a-dropdown v-model:visible="editColumnDropdown" class="h-full" :trigger="['click']" placement="bottomRight">
<div />
<template #overlay>
<SmartsheetColumnEditOrAddProvider

14
packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue

@ -95,12 +95,6 @@ const tooltipMsg = computed(() => {
}
return ''
})
function onVisibleChange() {
// only allow to close the EditOrAdd component
// by clicking cancel button
editColumnDropdown.value = true
}
</script>
<template>
@ -121,13 +115,7 @@ function onVisibleChange() {
<SmartsheetHeaderMenu v-if="!isForm && isUIAllowed('edit-column')" :virtual="true" @edit="editColumnDropdown = true" />
</template>
<a-dropdown
v-model:visible="editColumnDropdown"
class="h-full"
:trigger="['click']"
placement="bottomRight"
@visible-change="onVisibleChange"
>
<a-dropdown v-model:visible="editColumnDropdown" class="h-full" :trigger="['click']" placement="bottomRight">
<div />
<template #overlay>
<SmartsheetColumnEditOrAddProvider

Loading…
Cancel
Save