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

[QUESTION] hydrate multiple selectors at once #231

Open
k1mbl3 opened this issue May 18, 2023 · 0 comments
Open

[QUESTION] hydrate multiple selectors at once #231

k1mbl3 opened this issue May 18, 2023 · 0 comments

Comments

@k1mbl3
Copy link

k1mbl3 commented May 18, 2023

Is there a way to hydrate multiple selectors at once?
At the moment i'm doing this way:

document.querySelectorAll('.toggle').forEach(i => hydrate(Toggle(), i))

Because it seems that the hydrate's second argument receives a single element.

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

1 participant