-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
document mouseenter/mouseleave not fired on Firefox #1846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think we should create a svelte special component for each unique html tag and useful global object. Let's see, we already have and in plans: <svelte:self>
<svelte:component/>
<svelte:window />
<svelte:document />
<svelte:head />
<svelte:meta /> We missed following possible components: <svelte:html />
<svelte:body />
<svelte:navigator />
<svelte:location />
<svelte:history /> More fun with special components! 😄 |
This explains sveltejs/v2.svelte.dev#376 I tried adding the new I will try and do some research on this. |
replace <svelte:document> with <svelte:body>
It seems that Firefox does not fire
mouseenter
/mouseleave
events on the document, so the new<svelte:document on:mouseenter/mouseleave>
does not work there. It looks like they are fired ondocument.body
, and they are also fired there on Chrome.I know the whole point of
<svelte:document>
was to allow attaching these specific event handlers, but that's not cross-platform. The sanest thing might be to say 'ha, whoops, well don't use that' and to introduce a<svelte:body>
that lets you attach handlers to the body. I'm not sure.The text was updated successfully, but these errors were encountered: