We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70426f3 + bb5e156 commit 6e130ebCopy full SHA for 6e130eb
src/utils/picker.js
@@ -28,6 +28,14 @@ export class PickerView {
28
29
onScroll() {
30
const scrollElement = this._vm.$refs.scroll
31
+
32
+ if (!scrollElement) {
33
+ // Reported in https://github.com/serebrov/emoji-mart-vue/issues/305
34
+ // Would be good to understand how it can happen, but at least
35
+ // exiting early we prevent the error.
36
+ return
37
+ }
38
39
const scrollTop = scrollElement.scrollTop
40
41
let activeCategory = this.filteredCategories[0]
0 commit comments