From bd524a25cc487bd5af613d5ea2a5981468c7c0a4 Mon Sep 17 00:00:00 2001 From: Gaelle Date: Tue, 12 Dec 2023 14:15:55 +0100 Subject: [PATCH] use optional chaining --- .../BIMDataInputOutlined/BIMDataInputOutlined.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BIMDataComponents/BIMDataInputOutlined/BIMDataInputOutlined.vue b/src/BIMDataComponents/BIMDataInputOutlined/BIMDataInputOutlined.vue index 23045cfc..b3e3f1c2 100644 --- a/src/BIMDataComponents/BIMDataInputOutlined/BIMDataInputOutlined.vue +++ b/src/BIMDataComponents/BIMDataInputOutlined/BIMDataInputOutlined.vue @@ -170,10 +170,10 @@ export default { }, methods: { focus() { - this.$refs.input && this.$refs.input.focus(); + this.$refs.input?.focus(); }, blur() { - this.$refs.input && this.$refs.input.blur(); + this.$refs.input?.blur(); }, }, };