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

make $('.noSelect').disableTextSelect() for row #9

Open
maxazan opened this issue Jan 22, 2014 · 2 comments
Open

make $('.noSelect').disableTextSelect() for row #9

maxazan opened this issue Jan 22, 2014 · 2 comments

Comments

@maxazan
Copy link
Owner

maxazan commented Jan 22, 2014

No description provided.

@tablatronix
Copy link

Should add

.treegrid-expander{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: moz-none;
    -ms-user-select: none;
    user-select: none;
}

I tried event.preventDefault(); and event.stopPropagation(); on the click ( and even a dblclick) nothing seemed to work on blocking the clicks from bubbling to the td and selecting the text. Maybe i missed something specific about table events.

@tablatronix
Copy link

Actually nm,

            $(tpl).prependTo(cell).click(function(event) {
                $($(this).closest('tr')).treegrid('toggle');
            }).bind('selectstart dragstart', function(evt)
              { evt.preventDefault(); return false; });

works for preventing the expander clicks to highlight td text. Might be a different issue but seems related.
Users can deal with row selections themselves, should not be handled by plugin imo.

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