Comments (18)
In my case the problem is due to bootstrap's tab, to solve my problem I put the pickrTab active.
Or I defer instanciation after the click on the tab.
By the way, Thank you very much for this great pickr librairy, I really like it :)
from pickr.
I think it's because the picker is not visible and this.wrapper.offsetHeight
is 0.
https://github.com/Simonwep/pickr/blob/0c5b5c180cfb79c3760883859445459c2a4d18b6/src/js/pickr.js#L236
It's why background
will be linear-gradient(to top, rgba(0, 0, 0, 1), transparent), linear-gradient(to left, hsla(NaN, 100%, 50%, 1), rgba(255, 255, 255, 1))
.
from pickr.
Thanks to @nickbrit, fixed! JSFiddle fork: https://jsfiddle.net/ew9zq0sg/ see f354a34 😃
from pickr.
Could you please provide information how to reproduce it? Maybe a JSFiddle.
from pickr.
I can confirm this issue, but can't seem to replicate it in JSFiddle
What happens, however, seems to be that .pcr-palette
and .pcr-picker
don't get their styles set untill a user clicks on the palette. Before that the palette shows a checker pattern.
This also only started happening when updating to 0.3.4 (before I had 0.3.2)
from pickr.
Which browser (/ version) do you guys use? Seems like a strange bug
from pickr.
from pickr.
Version? I cannot reproduce it with these little informations... At least the environment, style / script including or packaging tool would be helpful!
from pickr.
I noticed this issue with firefox
from pickr.
Tested with Chrome 69+ and firefox 61+
diff-ing the two versions, I'd guess it has something to do with the introduction of initializing via requestAnimationFrame
.
If I had to guess, there is something (maybe in the dependencies people use?) that messes with requestanimationframe.
from pickr.
In my case I noticed that I had the default within the 'components' array, and once I moved it above it worked as expected. I cant remember where I copied the original demo code from where the defautl was in the wrong place
from pickr.
Hello,
Same problem here (Chromium 66.x)
from pickr.
Okay, thank you all! I'll try to reproduce / fix it! :)
from pickr.
I think this is also related to #4 and #31. This comment seems to solve this bug (maybe). I'm not sure in which environment this bug appears... Be sure to load pickr's css before all the javascript. Otherwise things like @LeFrach's screenshot happens. Moreover, don't use the defer
attribute.
For example, try to add all of your css in the head
element and place your JS at the very bottom of body
.
from pickr.
I can replicate this issue on Tab 2
https://jsfiddle.net/zbpn59cd/4/.
http://g.recordit.co/L56GZQACV8.gif
Chrome 71/ MacOS
from pickr.
can confirm. not being visible is the cause. In my case it's also not visible on page load.
Just checked, and the pallette works fine when it's visible on page load.
from pickr.
from pickr.
Yes problem solved for me, thank you !
from pickr.
Related Issues (20)
- Conflict between Clear event and Save event HOT 3
- color on cancel event when comparison is false
- Reset swatches array with a pre-existing array HOT 1
- Make palette accessible HOT 1
- Color of opacity Slider should not be Black everytime HOT 2
- Conflict between clear and change events HOT 2
- Help getting set up HOT 7
- github dependabot security
- How to add a Custom Template below the color Pickr
- input not working in bootstrap 5 modal HOT 4
- how to drag HOT 1
- Error - Property 'app' does not exist on type 'object'. HOT 1
- How set title at top of color picker dialog?
- hope when modifying the transparency option, the transparency of the pcr-palette area remains unchanged (always 1)
- add module entry
- Is it possible to give the picker an :onfocus event for accessibility
- Support for the new RGB syntax
- remove or replace the node-sass dependency
- Opacity PCR-picker slider background color issue.
- SCSS files not published
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pickr.