baianat / verte

🎨 A Color picker component. Built from the bottom to work with Vue.js.
https://baianat.github.io/verte/
MIT License
181 stars 42 forks source link

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

Open DaveZMB opened 2 years ago

DaveZMB commented 2 years ago

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):