I need to add class to the parent element when hovering its child. I solved it by taking the event target parent and assigning class to it by changing html using ‘classList.add’ and ‘classList.remove’.
Later I learned that its actual bad practice… It works, but I just don’t know how to solve using pure VueJs principles.
Here is fiddle with example:
Any help is highly appreciated