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:
Muhammed Mustafa
2023-10-25 12:51:29 +00:00
parent b2624e59fe
commit d984662ba9
2 changed files with 25 additions and 3 deletions

View File

@@ -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" />