Skip to content

Paste FFFFFF without # leads to error #351

@ThomasScreensoft

Description

@ThomasScreensoft

What is the current behavior?

When you paste FFFFFF (which should be white), the selected color fall back to #000000.

Please provide the steps to reproduce and create a JSFiddle.

With any type kind of picker, just paste FFFFFF without the leading # and the selected color is changed to #000000. It seems to happen with every hexa code that only contains alphabetic character...

What is the expected behavior?

It would be expected that the picker correctly interpret the pasted color.

Your environment:

The bug works on the online demo available on the GitHub page.

Version (see Pickr.version): 1.9.1
Used theme (default is classic): all 3
Browser-version:  Google Chrome Version 144.0.7559.133
Operating-system:  Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmedThe problem isn't really clear

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions