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

Can't interact with forms #103

Open
jaebirds opened this issue May 20, 2017 · 2 comments
Open

Can't interact with forms #103

jaebirds opened this issue May 20, 2017 · 2 comments

Comments

@jaebirds
Copy link

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!

@davetayls
Copy link
Owner

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));
        }
    }
});

@jaebirds
Copy link
Author

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.

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

2 participants