diff --git a/src/custom-components/ReorderableList.tsx b/src/custom-components/ReorderableList.tsx index 9e89a4f..397f7b6 100644 --- a/src/custom-components/ReorderableList.tsx +++ b/src/custom-components/ReorderableList.tsx @@ -54,8 +54,9 @@ export function ReorderableList(props: ReorderableListProps) { function saveOnBackout(e: Event) { const event = e as CustomEvent; - if (event.detail.button == GamepadButton.CANCEL) { - toggleReorderEnabled(); + if (event.detail.button == GamepadButton.CANCEL && reorderEnabled) { + setReorderEnabled(!reorderEnabled); + props.onSave(entryList); } }