-
Notifications
You must be signed in to change notification settings - Fork 587
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
allowEmpty only works with type "text" not with type "color" #551
Comments
You can enable Step 1: Open
...to this...
Step 2: Open
|
Nice! Well, so it seems to be build in intentionally. |
I don't think the For my application, I've set up listeners on the colorpickers which then transfer the color choices to various elements on the page in real-time. I'm only using the Now, if only I could figure out how to get |
maybe there is a reason for this behaviour, but did't find out.
jQuery("#myInput").spectrum({ allowEmpty: true });
shows the empty-button only if input looks like
<input type="text" id="myInput"/>
and not if it looks like
<input type="color" id="myInput"/>
using:
//cdnjs.cloudflare.com/ajax/libs/spectrum/1.8.0/spectrum.min.js
//cdnjs.cloudflare.com/ajax/libs/spectrum/1.8.0/spectrum.min.css
The text was updated successfully, but these errors were encountered: