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

The picker is not interoperable with transparent values #83

Open
karolk opened this issue Apr 4, 2013 · 1 comment
Open

The picker is not interoperable with transparent values #83

karolk opened this issue Apr 4, 2013 · 1 comment

Comments

@karolk
Copy link

karolk commented Apr 4, 2013

My use case is when user should be able to pick any color, or transparent. I added transparent swatch to the palette, but it seems selecting this will set the alpha internally to 0 and there is no way to reset that.

http://jsbin.com/omavub/1/edit

@bgrins
Copy link
Owner

bgrins commented Apr 5, 2013

So, there is a way around this by listening to the change event and setting the picker as necessary: http://jsbin.com/omavub/3/edit. I think this use case is probably specific enough to handle in a way like this.

Also, you might keep an eye out on this pull request: #37. This is a similar kind of feature that has been implemented (where you can 'remove' a color). It may match up with what you are trying to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants