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

Problem with CDN #13

Closed BlackStar1991 closed 3 years ago

BlackStar1991 commented 3 years ago

I tryed add element from CDN and get problem on FF browser http://prntscr.com/uma6a1 // and unfortunately, I still could not get to display the value of the current color of picker

web-padawan commented 3 years ago

Hi, can you please try to reproduce the issue with this example? https://jsbin.com/lejamix/edit?html,js,console,output

Also, what Firefox version do you have? I'm unable to reproduce this with Firefox 81.

BlackStar1991 commented 3 years ago

I used your element in this way https://jsbin.com/mujirujuqi/edit?html,js,console,output I have FF 80.0.1

23 сентября 2020, 10:55:01, от "Serhii Kulykov" notifications@github.com:

Hi, can you please try to reproduce the issue with this example? https://jsbin.com/lejamix/edit?html,js,console,output Also, what Firefox version do you have? I'm unable to reproduce this with Firefox 81. — You are receiving this because you authored the thread. Reply to this email directly, [view it on GitHub | https://github.com/web-padawan/vanilla-colorful/issues/13#issuecomment-697198993] , or [unsubscribe | https://github.com/notifications/unsubscribe-auth/AETO7R5BP55AT3NYOLXHPALSHGSVHANCNFSM4RWVXERA] .

web-padawan commented 3 years ago

If you have script type="module" loading from CDN, then you don't need to use import 'vanilla-colorful'; in your code.

BlackStar1991 commented 3 years ago

Thanks for the help. Просто тестировал решение из документации. Раньше не работал с кастомными элементами

23 сентября 2020, 15:25:01, от "Serhii Kulykov" notifications@github.com:

If you have script type="module" loading from CDN, then you don't need to use import 'vanilla-colorful'; in your code. — You are receiving this because you authored the thread. Reply to this email directly, [view it on GitHub | https://github.com/web-padawan/vanilla-colorful/issues/13#issuecomment-697329106] , or [unsubscribe | https://github.com/notifications/unsubscribe-auth/AETO7RZKJCQCKV53MYTMAOLSHHSJXANCNFSM4RWVXERA] .

web-padawan commented 3 years ago

I have added a section regarding ES modules in #15 to clarify using bare module specifiers. Hope this helps a bit.

Closing as answered, feel free to comment if something in the documentation isn't clear.