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

Mouseleave event is never triggered on iOS after interacting with a toast that has a button #12

Open
axtn opened this issue Oct 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@axtn
Copy link

axtn commented Oct 17, 2022

on:mouseleave={handlers.endPause}

This is an issue on iOS devices (that I've tested... iOS 16 and iPad OS)
When you click on a button (mouseenter) in a toast that has a rich content component (just like in the demo site dismiss btn), the subsequent toasts will be paused and never dismissed automatically.

In my app, I have to dispatch a custom event on dismiss to make sure subsequent toasts don't display forever
document.querySelector('.toaster')?.dispatchEvent(new CustomEvent('mouseleave'));

@kbrgl kbrgl added the bug Something isn't working label Oct 24, 2022
@kbrgl
Copy link
Owner

kbrgl commented Oct 24, 2022

Huh. That's odd. I imagine this may have something to do with the fact that pointer events are disabled somewhere in the CSS. But I don't see why it would happen only on mobile Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants