jquery.kinetic icon indicating copy to clipboard operation
jquery.kinetic copied to clipboard

Can't interact with forms

Open jaebirds opened this issue 7 years ago • 2 comments

Hi, I'm trying to use kinetic on a div that has a form inside of it. I included the filterTarget fix on the main page but that doesn't seem to have done anything. Is there another way to have the form not be affected by kinetic? Thanks!

jaebirds avatar May 20 '17 22:05 jaebirds

doesn't just including form in the filter do the trick?

$('#wrapper').kinetic({
    filterTarget: function(target, e){
        if (!/down|start/.test(e.type)){
            return !(/form|area|a|input/i.test(target.tagName));
        }
    }
});

davetayls avatar May 21 '17 08:05 davetayls

I just tested it, it seems to work fine in Firefox, but Google Chrome doesn't allow you to click or add anything to the fields.

jaebirds avatar May 21 '17 16:05 jaebirds