-
Notifications
You must be signed in to change notification settings - Fork 589
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
change() fired on original input despite docs #97
Comments
To be clear: the problem is that .spectrum('set', color) fires a "change" event. |
Yes, I see that. It should not be calling change, I think that was intended so that the 'change' event would fire on the input, but I'll have to look closer to see if that was fixing a different issue. |
So, I made a jsFiddle with this case, and I'm actually not seeing the 'change' event firing after calling set: http://jsfiddle.net/ctkY3/787/. I think I need to make the documentation more clear, but I'm thinking it is OK to fire a Here is my current thinking, let me know if there is a reason this you think this shouldn't be the case (given that we update the docs to be more clear):
|
I think I start from a different mindset. (I'm using spectrum as a shim, so I want it to be as similar as possible to HTML5.) I expect The alternative, which spectrum espouses now, is to make A doc change would help, yes. But I want to use logic like this:
And to do that with Spectrum as it is now, I need to ignore
... and then I need to avoid calling It's a lot of work, and I don't think it's intuitive. It's certainly different from |
I hear what you are saying. It doesn't map to the behavior of We do need to make sure that |
That makes sense to me. On Tue, Jun 25, 2013 at 10:10 PM, Brian Grinstead
My Phone (mobile): +1 613 986 3339 |
…trum callback if caused by `set` call). Issue #97
…trum callback if caused by `set` call). Issue #97
@adamhooper this should now be working as expected. Can you confirm the fix at https://github.com/bgrins/spectrum/blob/master/spectrum.js? |
I'll try it out next Tuesday. Thank you for your quick action! |
@adamhooper have you had a chance to pull this down and test it? |
Yup, works for me! Thank you for your great work. |
This bug was introduced in e9af7a0
It conflicts with the documentation here: http://bgrins.github.io/spectrum/#toc36
I think the solution is to revert e9af7a0 entirely. Judging from a git blame, there's more code in spectrum that correctly fires change().
The text was updated successfully, but these errors were encountered: