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

text is selected and no moving happen #50

Closed
iamamitnegi opened this issue Jan 13, 2015 · 3 comments
Closed

text is selected and no moving happen #50

iamamitnegi opened this issue Jan 13, 2015 · 3 comments

Comments

@iamamitnegi
Copy link

Please help me on below issue:

When I click and move over table row, the text is selected and no moving happens.

@iamamitnegi
Copy link
Author

Hurry!!! I I have found it's solution myself.

we have to allow HTML tag elements as blow:
if (ev.target.tagName == "TD" || ev.target.tagName == "P" || ev.target.tagName == "LI" || ev.target.tagName == "UL")

@bkdotcom
Copy link

why is this wrapped in this if statement?

if (e.target.tagName == "TD") {
    $.tableDnD.initialiseDrag(this, table, this, e, config);
    return false;
}

I ran into an issue when my TD contained <span>s

@Bibendus83
Copy link

So, why exactly does this check exists?
This blocks the drag event whenever any other html element is contained inside the TD, for example images, spans or divs.
I removed the "if (e.target.tagName == "TD") {" line and it works great, any counter indications?

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

3 participants