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) => { useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => {
switch (e.key) { switch (e.key) {
case 'Enter': case 'Enter':
if (isLocked.value) return
childListDlg.value = true childListDlg.value = true
e.stopPropagation() e.stopPropagation()
break break
@ -75,7 +76,7 @@ useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEven
</script> </script>
<template> <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"> <template v-if="!isForm">
<div class="flex-grow block"> <div class="flex-grow block">
<component <component

Loading…
Cancel
Save