Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double-click issue affecting window location by appending #

brian-learningpool opened this issue · comments

I've noticed that double-clicking on a color picker to select a color also seems to affect the browser's address bar, specifically, by appending a # character. This can actually be re-created on the project homepage at http://automattic.github.io/Iris/.

This causes serious problems for single page apps. Right now it makes Iris unsuitable for the BackboneJS app I'm working on. Can anything be done?

Hi Brian,

Adding prevent default to the slider handle is a work-around for now. Any updates on this?

$('.ui-slider-handle').click(function(e){
     e.preventDefault();
});