mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 14:35:49 +01:00
Fixed an javascript issue
This commit is contained in:
@@ -33,7 +33,10 @@ class RegisterEventHelper {
|
||||
registerModalDropRemovalOnFormSubmit() {
|
||||
//Remove all modal backdrops, before rendering the new page.
|
||||
document.addEventListener('turbo:before-render', event => {
|
||||
document.querySelector('.modal-backdrop').remove();
|
||||
const back_drop = document.querySelector('.modal-backdrop');
|
||||
if (back_drop) {
|
||||
back_drop.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user