Sortable: Filtered elements inside handle have disabled text selection

Created on 4 Apr 2017  路  6Comments  路  Source: SortableJS/Sortable

Would it be possible to add text selection back to filtered elements inside the handle?
I have a scenario where I would like the background of a div/span to be draggable, but the text inside the div/span to be selectable.

Here is a jsfiddle showing the "issue"
https://jsfiddle.net/9vqmn9zs/

In the fiddle above, the filtered text is not draggable, but not selectable either.

Most helpful comment

@jfcomeau @thomas07vt I think I just figured out how to work around this. In conjunction with the filter option, set preventOnFilter to false. This worked for me.

All 6 comments

+1

I'm trying to build a draggable component which contains an input[type='range']...

+1

I cannot focus on a text input within a filtered div because of this

@jfcomeau @thomas07vt I think I just figured out how to work around this. In conjunction with the filter option, set preventOnFilter to false. This worked for me.

@inoda That's work for me too! Thanks!!

@inoda you're a life saver man! Cheers!

As @inoda said, set preventOnFilter: false

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaermomo picture kaermomo  路  3Comments

graemegeorge picture graemegeorge  路  4Comments

chrishaigy picture chrishaigy  路  3Comments

rakeshrockb picture rakeshrockb  路  3Comments

kinjal-codes picture kinjal-codes  路  3Comments