mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-10 08:17:59 -05:00
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:
@@ -126,6 +126,7 @@ export function useBootstrapModal() {
|
||||
} catch (error) {
|
||||
console.error('Error disposing modal:', error)
|
||||
} finally {
|
||||
cleanupBodyStyles()
|
||||
modalInstance.value = null
|
||||
isInitialized.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user