Problem/Motivation
Drag and drop functionality results in javascript error jquery_ui_sortable enabled in drupal 10.2.5.
Error: The "drag_drop" plugin requires jQuery UI "sortable".
Proposed resolution
Change references sortable library module references from "core/jquery.ui.sortable" to "jquery_ui_sortable/sortable" (as per comment in With https://www.drupal.org/project/jquery_ui_sortable)
src/Element/SelectizeEntityAutocomplete.php:
$libraries = ['core/jquery.ui.sortable'];
src/Element/Selectize.php:
$complete_form['#attached']['library'][] = 'core/jquery.ui.sortable';
Need changing to:
src/Element/SelectizeEntityAutocomplete.php:
$libraries = ['jquery_ui_sortable/sortable'];
src/Element/Selectize.php:
$complete_form['#attached']['library'][] = 'jquery_ui_sortable/sortable';
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | selectize-sortable-issue-3458652.patch | 1.3 KB | mistergroove |
Comments
Comment #2
mistergroove commentedComment #3
mistergroove commentedAdded a patch against 2.0.x-dev.
P.S. Great module.