Skip to content

Commit

Permalink
UBO-359 FSU040THUL-4433 Remove parent div once it has been processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Sep 6, 2024
1 parent 4bd7ddf commit 3a6c52a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,15 @@ class LanguageSearchInput {
this.searchInput.type = 'text';
this.searchInput.classList.add('form-control');
this.searchInput.classList.add('language-search-input');
this.searchInput.classList.add('mycore-form-input');
this.searchInput.setAttribute('list', 'language-search-list');
this.root.append(this.searchInput);

while (this.root.firstChild) {
this.root.parentNode.insertBefore(this.root.firstChild, this.root);
}
this.root.parentNode.removeChild(this.root);

fetch(`${baseURL}rsc/locale/translate/${currentLang}/edit.language.placeholder`)
.then(response => response.text())
.then(translation => {
Expand Down

0 comments on commit 3a6c52a

Please sign in to comment.