Call cleanupBodyStyles after modal dispose

Ensures that body styles are cleaned up in the finally block after disposing the modal, preventing potential style leaks or side effects.
This commit is contained in:
João Vitória Silva
2025-10-29 22:57:03 +00:00
parent 6a5bc1a8dd
commit 8763ace2e3

View File

@@ -126,6 +126,7 @@ export function useBootstrapModal() {
} catch (error) {
console.error('Error disposing modal:', error)
} finally {
cleanupBodyStyles()
modalInstance.value = null
isInitialized.value = false
}