-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
non-alpha picker #107
Comments
Good idea! I'll take a look at it :) |
Okay, I think one solution would be to ignore the opacity part, though it's always possible to use My idea is to lock opacity at pickr.getColor().toRGBA().toString(0) // 0 param is new: round values would therefore result in Any thoughts? |
that would work in theory. The problem would be with input enabled, that the users would see a fouth param to change, and seeing it default to 1. Without providing an explanation this could cause confusion. |
Okay, I've added it. You can use Checkout this demo: https://jsfiddle.net/Simonwep/psdokgr1/ It was a lot of refactoring and many changes must be done, please check it out and be sure everything works as you expect :) |
perfect. exactly what I was looking for 👍 |
Available in 1.2.0 :) |
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
All input types include alpha. While you can disable opacity in the options, the input will still allow you to enter an alpha value.
What is the expected behavior?
Is it possible for the picker to return hex instead of hexa, rgb instead of rgba etc, when opacity is disabled? Or for a specific setting to initiate the picker in a 'non-alpha' mode?
Your environment:
The text was updated successfully, but these errors were encountered: