You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also fixed a firefox bug for me where I could only drag a paragraph of line-wrapped text inside a h4 with a handle class if I picked it up by the first line. On subsequent lines text was being selected instead of the paragraph moving.
For me it worked in Chrome. However, I found so many other bugs that I decided to go back to Jquery Sortable. I use this directive to work with angular and is fully functional: https://github.com/angular-ui/ui-sortable
It seems as though the problem still persists (at least for IE) in v1.5.0. Looks like the changes you made in the mentioned commit above were reverted by 03b49f7
I do to in FF 53. If I put a -moz-user-select: none; rule on items or on container, the drag n' drop is buggy (mouse button needs to be released, then you can drag, and click will drop). Could not find a fix. Really annoying :(
I could hack a working solution putting a -moz-user-select: none; rule on the container and using RubaXa's patch, with a condition for Firefox : var isFirefox = typeof InstallTrigger !== 'undefined'; if ( isFirefox && options.forceFallback ) { evt.preventDefault(); }
Hi, I still experience this in Safari 11.0.1 & macOS 10.13.1. But I set a css attribute to the parent element { user-select: none ; -webkit-... } , by this can fix the bug
I'm using FullCalendar which still requires the forceFallback option (see this issue), and so the problem of dragging causing text selection still occurs. If you are using Tailwindcss however there is an easy workaround - for the containing element (<ul> for me) just include the "select-none" element and the selection issue goes away. See this for more: https://tailwindcss.com/docs/user-select
Activity
rafwell commentedon Jan 6, 2017
Try add this to your sortable item css:
this worked for me. ref: http://stackoverflow.com/questions/826782/how-to-disable-text-selection-highlighting-using-css
nmcgann commentedon Jan 19, 2017
This also fixed a firefox bug for me where I could only drag a paragraph of line-wrapped text inside a h4 with a handle class if I picked it up by the first line. On subsequent lines text was being selected instead of the paragraph moving.
This behavior wasn't present in Chrome or Edge.
rafwell commentedon Jan 20, 2017
For me it worked in Chrome. However, I found so many other bugs that I decided to go back to Jquery Sortable. I use this directive to work with angular and is fully functional: https://github.com/angular-ui/ui-sortable
#997, #998: + prevent on forceFallback
RubaXa commentedon Feb 15, 2017
26a7c97
itamargiv commentedon Feb 16, 2017
@RubaXa Fantastic! thank you for the fix. When is the next version release planned?
RubaXa commentedon Feb 16, 2017
February 19
itamargiv commentedon Feb 21, 2017
Hey @RubaXa.
It seems as though the problem still persists (at least for IE) in v1.5.0. Looks like the changes you made in the mentioned commit above were reverted by 03b49f7
iamakulov commentedon Mar 16, 2017
I still experience this in Firefox 52 with Sortable 1.5.1.
brice-t commentedon Apr 27, 2017
I do to in FF 53. If I put a -moz-user-select: none; rule on items or on container, the drag n' drop is buggy (mouse button needs to be released, then you can drag, and click will drop). Could not find a fix. Really annoying :(
brice-t commentedon Apr 28, 2017
I could hack a working solution putting a -moz-user-select: none; rule on the container and using RubaXa's patch, with a condition for Firefox :
var isFirefox = typeof InstallTrigger !== 'undefined'; if ( isFirefox && options.forceFallback ) { evt.preventDefault(); }magnnus commentedon Jan 19, 2018
Hi, I still experience this in Safari 11.0.1 & macOS 10.13.1. But I set a css attribute to the parent element { user-select: none ; -webkit-... } , by this can fix the bug
vegerot commentedon Feb 26, 2021
Related to #1935
I am also experiencing this
lukasz-zaroda commentedon Aug 2, 2024
I have this issue on Chromium 127.0.6533.88 , so it seems it not only happens in Safari.
narath commentedon Oct 21, 2024
I'm using FullCalendar which still requires the forceFallback option (see this issue), and so the problem of dragging causing text selection still occurs. If you are using Tailwindcss however there is an easy workaround - for the containing element (
<ul>for me) just include the "select-none" element and the selection issue goes away. See this for more: https://tailwindcss.com/docs/user-selectHope this helps. Thanks to https://github.com/alexrudall for helping me get these 2 great libraries working together.