From 45f2c53dd36b79c14bf59be91bdc62bd756a6935 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 8 Jul 2022 15:42:14 +0800 Subject: [PATCH] fix: remove percent input focus --- .../spreadsheet/components/editableCell/PercentCell.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell/PercentCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell/PercentCell.vue index 90bc0b023c..d19d4dc8b7 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell/PercentCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell/PercentCell.vue @@ -64,13 +64,7 @@ export default { return $listeners; }, }, - mounted() { - window.addEventListener('keypress', _ => { - if (this.$refs.percentInput) { - this.$refs.percentInput.focus(); - } - }); - }, + mounted() {}, methods: { checkPercentFormat(evt) { evt = evt || window.event;