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

Callback isn't called after first time #210

Open
justingolden21 opened this issue Mar 1, 2020 · 0 comments
Open

Callback isn't called after first time #210

justingolden21 opened this issue Mar 1, 2020 · 0 comments

Comments

@justingolden21
Copy link

justingolden21 commented Mar 1, 2020

I have the code:

$('#color-picker').colorPicker({opacity:false, renderCallback: 
	function(elm, toggled) {
		$('#hsl-input').val(elm.val() );
		console.log('callback called');
	}
});

When I drag to change the color picker, the callback function is called (many times). However, when I click on another input then click back on the color picker again, dragging it does not call the callback function.

I've checked the docs and other issues a bit and couldn't find anything on this. Thank you in advance.

EDIT: Here is my HTML for the color picker:

<input id="color-picker" class="form-control" value="hsl(0,0,0)" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">

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

1 participant