miguel-perez / smoothState.js

Unobtrusive page transitions with jQuery.
MIT License
4.43k stars 508 forks source link

Prefetch option : mouseover event not bubbling #354

Open armellarcier opened 6 years ago

armellarcier commented 6 years ago

I have an event listener on .nav li:

$(".nav li a").bind("mouseover", event => {
  console.log(event); // logs the event
});

When I use smoothState with this config :

{
  prefetch: true,
  anchors: ".li li a"
}

No more mouseover handler are called. The event is not bubbling from the a to the parent li when prefetch is set to true.