Closed robertdrakedennis closed 2 years ago
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
hi, you could do this document.querySelectorAll('hex-color-picker');
document.querySelectorAll('hex-color-picker');
and apply event listener to every htmlelement in array
Hi, thanks for the answer. This is indeed a correct way to do it.
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