It appears that vanilla event listeners do not function properly when targeting DOM elements within Vue components.
Code Snippet
<p id="test1">Hover over this (works)</p>
<div id="app">
<p id="test2">Hover over this (not working)</p>
</div>
JavaScript
document.querySelector('#test1').addEventListener('mouseover', function() {
alert("HOVER1")
})
document.querySelector('#test2').addEventListener('mouseover', function() {
alert("HOVER2")
})
new Vue({
el: "#app"
})
Live Example
View live example here
Is this behavior intentional? Are there any other restrictions when mixing vanilla JavaScript with Vue?