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

pass click event to component #10

Closed
indeyets opened this issue Feb 5, 2020 · 1 comment
Closed

pass click event to component #10

indeyets opened this issue Feb 5, 2020 · 1 comment

Comments

@indeyets
Copy link

indeyets commented Feb 5, 2020

Is it possible to forward event further down to component In case when on="click" option is used? It would make hydration of interactive components so much more usable.

It is mostly important for mobile, as we have "mouseenter" on desktop which, probably, would fire before user has time to click. On mobile, "cilck" (or "tap") would often be the first event page ever gets and we can't waste it

Expected behaviour:

  1. user clicks
  2. component is hydrated
  3. component handles "click" event
@hadeeb
Copy link
Owner

hadeeb commented Feb 14, 2020

Interesting. If you have any idea how to implement it without too much complexity, we can look into it.

opinion: If your component is interactive, hydrate on visibility/idle or don't even wrap with lazy at all. You might miss some user interaction.

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