Skip to content

Initial color not set correctly when pickr parent is not visible. #226

@DEfusion

Description

@DEfusion

What is the current behavior?

If the container the pickr is output in is not visible when it is created the position of the movable handles is not shown correctly on opening, this then has the knock-on effect of not setting the color correctly on interaction unless you click on the palette or a swatch first as can be seen in this video: https://share.getcloudapp.com/d5uWDWLB

Please provide the steps to reproduce and create a JSFiddle.

https://jsfiddle.net/5szxbhqk/

What is the expected behavior?

  • The elements of the pickr should have their controls in the correct position
  • Changing the value by using the hue or alpha slider should set the color correctly

Your environment:

Version (see Pickr.version): 1.7.1
Used bundle (es5 or normal one): es5
Used theme (default is classic): default
Browser-version:  Chrome 84
Operating-system:  OS X

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiscussionThis is a discussion about a change, feature or strongly code-related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions