Skip to content
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

capture, passive modes not working for svelte:body special element. #4278

Closed
sravanb opened this issue Jan 17, 2020 · 1 comment · Fixed by #4279
Closed

capture, passive modes not working for svelte:body special element. #4278

sravanb opened this issue Jan 17, 2020 · 1 comment · Fixed by #4279
Labels

Comments

@sravanb
Copy link

sravanb commented Jan 17, 2020

Describe the bug

once, capture, passive options are not working for the svelte:body element.

Observation

<svelte:window on:keydown|passive={handleKeydown}>
generates
listen(window, "keydown", /*handleKeydown*/ ctx[2], { passive: true }),

while

<svelte:body on:keydown|passive={handleKeydown}/>
generates
document.body.addEventListener("keydown", /*handleKeydown*/ ctx[2]);

instead of using the listen method.

@sravanb sravanb changed the title capture, passive modes not working in for svelte:body special element. capture, passive modes not working for svelte:body special element. Jan 17, 2020
@Conduitry Conduitry added the bug label Jan 17, 2020
Conduitry added a commit to Conduitry/svelte that referenced this issue Jan 17, 2020
@Conduitry
Copy link
Member

Fixed in 3.17.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants