mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-06 15:26:24 -06:00
Enable drag-and-drop of items within multiselect fields
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
@@ -20,6 +20,11 @@ export function getPlugins(element: HTMLSelectElement): object {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable drag-and-drop reordering of items on multi-select fields
|
||||||
|
if (element.hasAttribute('multiple')) {
|
||||||
|
plugins.drag_drop = {};
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugins: plugins,
|
plugins: plugins,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user