Answer the question
In order to leave comments, you need to log in
How to subscribe via this.$refs.element to addEventListener()?
Hello. How to do it right, otherwise it gives an error?
created() {
this.$refs.textArea.addEventListener('scroll', ()=> console.log('dfdf'));
},
TypeError: Cannot read property 'addEventListener' of undefined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question