Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#598] Fixed inventory drag issue. #599

Merged

Conversation

adhershmnair
Copy link
Contributor

@adhershmnair adhershmnair commented Nov 24, 2024

Description

[#598] Items stuck on screen after inventory closed.

Inventory items not hiding from the screen after inventory is closed. Inventory restart required to fix the issue for all players.

Checklist

  • I have personally loaded this code into an updated qbcore project and checked all of its functionality.
  • My code fits the style guidelines.
  • My PR fits the contribution guidelines.

@@ -187,6 +187,7 @@ const InventoryContainer = Vue.createApp({
}
},
async closeInventory() {
this.clearDragData();
Copy link
Contributor Author

@adhershmnair adhershmnair Nov 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clear all ghost elements once inventory is closed using an existing clearDragData function for the same.

@GhzGarage GhzGarage merged commit e9243b2 into qbcore-framework:main Nov 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants