Automattic / Iris

A(n awesome) Color Picker
GNU General Public License v2.0
259 stars 67 forks source link

Multiple color pickers on the page #44

Closed alexkart closed 9 years ago

alexkart commented 10 years ago

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

alexkart commented 10 years ago

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

brian-learningpool commented 10 years ago

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.

mattwiebe commented 9 years ago

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