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

colpickShow causes javascript error #30

Closed
pergardebrink opened this issue Nov 24, 2014 · 3 comments
Closed

colpickShow causes javascript error #30

pergardebrink opened this issue Nov 24, 2014 · 3 comments

Comments

@pergardebrink
Copy link

I have a small problem with the colpickShow function. When calling it, I get an error stating "Uncaught TypeError: Cannot read property 'stopPropagation' of undefined"

This seems to be because there is no event sent into the show function when called externally that it tries to use (on line 233 in colpick.js). Should there be some check if an event is provided before trying to stop propagation?

Example jsfiddle with the problem (open javascript console to see error): http://jsfiddle.net/uwwywjv8/

Great work btw!

@DorianListens
Copy link

I've encountered this problem as well, the way we've gotten around this is by using jQuery to fire a click event on the colpick target rather than running colpickShow, which has the same effect.

mrgrain added a commit to mrgrain/colpick that referenced this issue Jan 18, 2015
Signed-off-by: Moritz Kornher <mail@moritzkornher.de>
mrgrain added a commit to mrgrain/colpick that referenced this issue Jan 18, 2015
Signed-off-by: Moritz Kornher <mail@moritzkornher.de>
@cheshire137
Copy link

The color picker does not show when I do a $('#picker').click().

@josedvq
Copy link
Owner

josedvq commented Dec 11, 2017

Fixed, thank you.

@josedvq josedvq closed this as completed Dec 11, 2017
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

4 participants