Return set toast position on container init

This commit is contained in:
Cohee
2025-05-21 20:55:11 +03:00
parent acfc9059e7
commit 8b6e2a0fe1

View File

@ -725,6 +725,7 @@ export function fixToastrForDialogs() {
if (!toastContainer) {
toastContainer = document.createElement('div');
toastContainer.setAttribute('id', 'toast-container');
if (toastr.options.positionClass) toastContainer.classList.add(toastr.options.positionClass);
}
// Check if toastr is already a child. If not, we need to move it inside this dialog.