Skip to content

Commit

Permalink
keep showing options on error
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Jul 4, 2024
1 parent 49550fb commit 8ac4288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions globalseo.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.globalseo-errormsg {
display: block;
color: red;
font-size: 14px;
cursor: auto!important;
border-top: 1px solid red;
padding: 10px!important;
}

.globalseo-lang-selector-wrapper.floating {
Expand Down
5 changes: 3 additions & 2 deletions utils/selector/renderSelectorState.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ function renderSelectorState(opts = { shouldUpdateActiveLang: true }) {
selector.classList.add(errorClass);
selector.classList.remove(readyClass, loadingClass);
const ul = selector.nextElementSibling;
console.log("UL", ul)
ul.innerHTML = `<li class="globalseo-errormsg" style="padding: 10px!important;">ERROR: ${window.globalseoError}</li>`;
const errorListItem = document.createElement('li');
errorListItem.innerHTML = `<span class="globalseo-errormsg">ERROR: ${window.globalseoError}</span>`
ul.appendChild(errorListItem);
return;
}

Expand Down

0 comments on commit 8ac4288

Please sign in to comment.