Tomas Randus
Tomas Randus

Reputation: 2285

JQuery sortable with a handle - not possible to select text

When I use JQuery UI Sortable with a handlers (or without) there's no possibility to select a text from the rest of the element. I have tried "cancel" param with no result.

$('ul').sortable({
  distance: 15,
  items: '> li',
  handle: '> span'
}).disableSelection();

JSBin: http://jsbin.com/ikazuh/3/edit

Upvotes: 3

Views: 2600

Answers (1)

Lex
Lex

Reputation: 478

Simply remove .disableSelection() and it's fixed :)

You can select the text but not the handler.

Upvotes: 11

Related Questions