From 523105c8b0878996d38b38fe2be304a69e0bdebc Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 22 Nov 2022 13:33:26 +0530 Subject: [PATCH] fix(gui): allow typing directly in single select Signed-off-by: Pranav C --- packages/nc-gui/components/cell/SingleSelect.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index ab20e724a8..f4e93c04f5 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -102,6 +102,13 @@ useSelectedCellKeyupListener(active, (e) => { isOpen.value = true } break + default: + // toggle only if char key pressed + if (e.key?.length === 1) { + e.stopPropagation() + isOpen.value = true + } + break } })