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

Multiple Colorful instances on same page #66

Closed
robertdrakedennis opened this issue Oct 2, 2021 · 2 comments
Closed

Multiple Colorful instances on same page #66

robertdrakedennis opened this issue Oct 2, 2021 · 2 comments

Comments

@robertdrakedennis
Copy link

Hi there! I currently writing a simple reusable blade component in my project and I'm having a difficult time trying to have multiple colorful instances work. What would be your strategy on this?

Example of what component: https://gist.github.com/robertdrakedennis/35461b629722c2adbbe0c1938c4178d8

@Reidond
Copy link

Reidond commented Oct 9, 2021

hi, you could do this document.querySelectorAll('hex-color-picker');

and apply event listener to every htmlelement in array

@web-padawan
Copy link
Owner

Hi, thanks for the answer. This is indeed a correct way to do it.

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

3 participants