mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-05 10:36:44 +00:00
fix: Removed white line coming up when column header is right clicked and skipped column column selection logic when left/right clicked when edit column modal is opened
This commit is contained in:
@@ -128,13 +128,22 @@ const openHeaderMenu = () => {
|
||||
editColumnDropdown.value = true
|
||||
}
|
||||
}
|
||||
|
||||
const openDropDown = (e: Event) => {
|
||||
if (isForm.value || isExpandedForm.value || (!isUIAllowed('fieldEdit') && !isMobileMode.value)) return
|
||||
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
|
||||
isDropDownOpen.value = !isDropDownOpen.value
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="flex items-center w-full h-full text-xs text-gray-500 font-weight-medium"
|
||||
@dblclick="openHeaderMenu"
|
||||
@click.right="isDropDownOpen = !isDropDownOpen"
|
||||
@click.right="openDropDown"
|
||||
>
|
||||
<LazySmartsheetHeaderVirtualCellIcon v-if="column && !props.hideIcon" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user