From 331fcef9ad587318063be915b7d61fd404707031 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Wed, 24 Feb 2021 10:06:25 +0200 Subject: [PATCH] Fixed: Error message when focus grabbing element is missing on form --- app/imports/ui/properties/forms/shared/propertyFormMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/imports/ui/properties/forms/shared/propertyFormMixin.js b/app/imports/ui/properties/forms/shared/propertyFormMixin.js index 3ce093aa..389e40dd 100644 --- a/app/imports/ui/properties/forms/shared/propertyFormMixin.js +++ b/app/imports/ui/properties/forms/shared/propertyFormMixin.js @@ -10,7 +10,7 @@ export default { }, }, mounted(){ - if (this.$refs.focusFirst){ + if (this.$refs.focusFirst && this.$refs.focusFirst.focus){ setTimeout(() => this.$refs.focusFirst.focus(), 300); } },