Browse Source

fix: on double click open child list and block it if locked

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 1 year ago
parent
commit
90a1748fd4
  1. 3
      packages/nc-gui/components/virtual-cell/Links.vue

3
packages/nc-gui/components/virtual-cell/Links.vue

@ -67,6 +67,7 @@ const openChildList = () => {
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => {
switch (e.key) {
case 'Enter':
if (isLocked.value) return
childListDlg.value = true
e.stopPropagation()
break
@ -75,7 +76,7 @@ useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEven
</script>
<template>
<div class="flex w-full items-center" @dblclick.stop="listItemsDlg = true">
<div class="flex w-full items-center" @dblclick.stop="openChildList = true">
<template v-if="!isForm">
<div class="flex-grow block">
<component

Loading…
Cancel
Save