Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

List component, drag handler: added check for source and destination id being the same

gianantoniopinibd1bd2fc9712
diff --git a/src/components/builder/lists/List.js b/src/components/builder/lists/List.js
index bfe77b9ed..51beb3367 100644
--- a/src/components/builder/lists/List.js
+++ b/src/components/builder/lists/List.js
@@ -44,6 +44,10 @@ const List = ({
return;
}
+ if (source.index === destination.index) {
+ return;
+ }
+
const itemsReordered = reorder(items, source.index, destination.index);
dispatch({
type: 'on_input',