web-padawan / vanilla-colorful

A tiny color picker custom element for modern web apps (2.7 KB) 🎨
https://web-padawan.github.io/vanilla-colorful/
MIT License
784 stars 29 forks source link

Issue with hex-input slot #65

Closed Reidond closed 1 year ago

Reidond commented 2 years ago

Hello,

This html <hex-input><input class="form-control form-unit__input mb-1" part="input" spellcheck="false"></hex-input>

Produces this: image

DOM nodes: image

web-padawan commented 2 years ago

Hi, please use slot attribute to customize the input passed to light DOM:

<hex-input><input class="form-control form-unit__input mb-1" slot="input" spellcheck="false"></hex-input>
Reidond commented 2 years ago

is it possible that, if i have two hex-inputs on page, component add 2 slots?

Reidond commented 2 years ago

because i have one component that works great, and one that generates this strange DOM nodes (2 pic in issue), but they are absolutely same

web-padawan commented 1 year ago

Should be fixed by #93 released in 0.7.2.