Missing info in docs about setting up thumbnails #150
Replies: 4 comments 1 reply
-
The thumbnail IS set up out of the box. You do not need to manually wrap the input field. |
Beta Was this translation helpful? Give feedback.
-
I am using custom selector for I'll try to reproduce it somewhere. |
Beta Was this translation helpful? Give feedback.
-
@mdbassit never mind the previous comment, could not reproduce it, so it's an issue on my side. But I managed to reproduce the thumbnail issue. Additionally, you can observe that even if I'm setting custom https://codesandbox.io/p/devbox/suspicious-colden-c2cfq2?file=%2Fsrc%2FApp.vue%3A10%2C65 |
Beta Was this translation helpful? Give feedback.
-
Your input field is not yet in the DOM when Coloris.wrap('.color-picker__input');
Your selector doesn't appear to be the right one. It should be I'm converting this into a discussion. |
Beta Was this translation helpful? Give feedback.
-
I had too look in past issues to find out that thumbnail is not set up out of the box. I think it should be added in the docs that
input
andbutton
elements should be wrapped inside a parent element with classclr-field
.Great library tho, thanks for your effort.
Beta Was this translation helpful? Give feedback.
All reactions