Skip to content

Hex color input doesn't work without a # #87

@DaveZMB

Description

@DaveZMB

Describe the bug
If you enter a hex color but are missing the hash (#) the color picker won't select your color.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codepen.io/DaveZ123/full/YzEPmxP
  2. Click on the text box
  3. Enter "ffffff"
  4. Click the check mark
  5. See that the color picker does not update

Expected behavior
The color picker should handle hex values that don't start with "#"

Demo
https://codepen.io/DaveZ123/full/YzEPmxP

Desktop (please complete the following information):

  • All devices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions