Skip to content

Commit 61e8aa6

Browse files
fix: prevent calling focus when element is undefined
1 parent e1a67ce commit 61e8aa6

File tree

1 file changed

+3
-1
lines changed
  • frontend/express/public/javascripts/countly/vue/components

1 file changed

+3
-1
lines changed

frontend/express/public/javascripts/countly/vue/components/content.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@
224224
}
225225
},
226226
onViewEntered: function() { //?
227-
this.$refs.rootEl.focus();
227+
if (this.$refs.rootEl) {
228+
this.$refs.rootEl.focus();
229+
}
228230
}
229231
},
230232
created: function() {

0 commit comments

Comments
 (0)