Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Color Change After Pasting Copied Color and Editing #343

Open
taras-dashkevych opened this issue Dec 13, 2024 · 0 comments
Open
Labels
unconfirmed The problem isn't really clear

Comments

@taras-dashkevych
Copy link

What is the current behavior?

When a copied color is pasted into the input field, then the color is changed using the color holder, and some numbers are removed using backspace, the color picker unexpectedly changes colors.

Please provide the steps to reproduce and create a JSFiddle also reproduced here https://simonwep.github.io/pickr/

Screen.Recording.2024-12-13.143226.mp4
  1. Paste the color #FFFFFF into the input field.
  2. Change the color to #FF0000 using the color canvas.
  3. Press backspace twice. The color changes to #FFFF0000.
  4. After that, the color always changes back to #FFFFFF.

What is the expected behavior?

The color picker should not automatically replace the color after removing a symbol with backspace. It should remove the symbol and set the color based on the new value.

Your environment:

Browser-version:  Microsoft Edge Version 131.0.2903.86 (Official build) (64-bit) (but same on Chrome)
Operating-system:  Windows 11
@taras-dashkevych taras-dashkevych added the unconfirmed The problem isn't really clear label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed The problem isn't really clear
Projects
None yet
Development

No branches or pull requests

1 participant