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

Infinite loading error #111

Open
jaksakecojevic opened this issue Jan 3, 2025 · 1 comment
Open

Infinite loading error #111

jaksakecojevic opened this issue Jan 3, 2025 · 1 comment

Comments

@jaksakecojevic
Copy link

Hi,

I've noticed that infinite loading occurs when using e.preventDefault() or e.stopPropagation() inside onClick events inside the children of a Link.

When a button inside a link is clicked, if that button has stopPropagation() or preventDefault() in the handler, the toploader will just load to infinity and never stop even though the navigation will never happen.

Is there a way to prevent this or a different approach is needed when using preventDefault and stopPropagation?

@hunghuy201280
Copy link

hunghuy201280 commented Feb 6, 2025

              e.preventDefault();
              e.stopPropagation();
              e.nativeEvent.stopImmediatePropagation();

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

No branches or pull requests

2 participants