diff --git a/html/app.js b/html/app.js
index f86977afc..1b885987b 100644
--- a/html/app.js
+++ b/html/app.js
@@ -187,6 +187,7 @@ const InventoryContainer = Vue.createApp({
}
},
async closeInventory() {
+ this.clearDragData();
let inventoryName = this.otherInventoryName;
Object.assign(this, this.getInitialState());
try {