Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple color pickers on the page

alexkart opened this issue · comments

How to use multiple color pickers on the page? I tried this

<input type="text" class='color-picker' value="#bada55" />
<input type="text" class='color-picker' value="#bada55" />

<script type="text/javascript">
jQuery(document).ready(function($){
    $('.color-picker').iris();
});
</script>

but it seems it doesn't work correctly, when I dragging the circle over the field with colors
23453245345345

problem appears with latest v1.0.5, I tried v1.0.4 from your site with examples and problem has gone

I've also noticed this in v1.0.5. If I have two pickers, I can drag the color selector in the first picker fine, while in the second picker I can still click to select a color but dragging does not work and instead sets the slider to white -- the circle/picker disappears.

Thanks for the report, this has been fixed in v1.0.7.