jquery-treegrid icon indicating copy to clipboard operation
jquery-treegrid copied to clipboard

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

Open maxazan opened this issue 11 years ago • 2 comments

maxazan avatar Jan 22 '14 12:01 maxazan

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 avatar Mar 28 '14 15:03 tablatronix

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.

tablatronix avatar Mar 28 '14 15:03 tablatronix