mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 01:15:28 +00:00
fix/Fixed scroll issue with EditOrAdd component fixed for edit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user