Skip to content

disableSelection should be avoided. #136

@martinviolet88

Description

@martinviolet88

The use of disableSelection should be avoided, when using inline editting(https://github.com/symbiote/silverstripe-gridfieldextensions) the function prevents selecting text and textareafields.
https://api.jqueryui.com/disableselection/

Schermafbeelding 2023-03-20 om 18 48 23

"
Caveat emptor: .disableSelection() is actually harmful on some browsers, as it prevents clicking active elements (e.g. textareas) inside the sortable.

Firefox 33.1 for Mac OS X (Yosemite): .disableSelection() prevents clicking on embedded textarea; doesn't seem to have any effect otherwise (i.e. it is still impossible to select text with the mouse in the sortable if omitted)
Chrome 39.0.2171.71 (64-bit) for Mac OS X: .disableSelection() seems to have no effect whatsoever.
"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions