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';

Comments

mistergroove created an issue. See original summary.

mistergroove’s picture

Issue summary: View changes
mistergroove’s picture

StatusFileSize
new1.3 KB

Added a patch against 2.0.x-dev.

P.S. Great module.