Skip to content

Commit a571691

Browse files
Merge pull request #5826 from Countly/fix-remove-console-log-when-selecting-carousel-type
Fix: prevent calling focus when element is undefined on content left sidebar
2 parents 32861df + f2d09d9 commit a571691

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)