Browse Source

fix(gui-v2): close menu after clicking menu item

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2947/head
Pranav C 2 years ago
parent
commit
04e0fcda30
  1. 2
      packages/nc-gui-v2/components/smartsheet/Grid.vue

2
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -291,7 +291,7 @@ onKeyStroke(['Tab', 'Shift', 'Enter', 'Delete', 'ArrowDown', 'ArrowUp', 'ArrowLe
</table>
</div>
<template #overlay>
<div class="bg-white shadow">
<div class="bg-white shadow" @click="contextMenu = false">
<div v-if="contextMenuTarget" class="nc-menu-item" @click="deleteRow(contextMenuTarget.row)">Delete row</div>
<div class="nc-menu-item" @click="deleteSelectedRows">Delete all selected rows</div>
<div v-if="contextMenuTarget" class="nc-menu-item" >Clear cell</div>

Loading…
Cancel
Save