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

Single click on Color Selector Appends # to URL #56

Open
jeryj opened this issue May 31, 2016 · 0 comments
Open

Single click on Color Selector Appends # to URL #56

jeryj opened this issue May 31, 2016 · 0 comments

Comments

@jeryj
Copy link

jeryj commented May 31, 2016

If you just Click the circle selector instead of Dragging it, it will append a # to the URL, causing the page to jump to the top.

Temporary fix until it's fixed in the repo:

jQuery(document).ready(function($){
    $('#color-picker').iris();

   // after initializing iris on your element(s)
   $('.iris-square-value').click(function(e) {
       e.preventDefault();
   });
});
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