mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed an javascript issue
This commit is contained in:
parent
400cc44838
commit
bfc3abd259
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue