0👍
You’ll need to check if it’s an element before proceeding:
if (event.target instanceof HTMLElement) {
event.target.style.opacity = 1 // ok
- [Vuejs]-How to prevent scroll when a-tag is clicked on carousel of Vue.js
- [Vuejs]-How can i fixed the error of the assigned id that has never been used but actually used?
Source:stackexchange.com