Skip to content

Commit

Permalink
Jumpmenu issue on new-lab page creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Raja-danaher committed Feb 7, 2025
1 parent c33384a commit 4860a71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/columns/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function decorate(block) {
secondDiv.classList.add('lg:w-1/3');
} else {
firstDiv.classList.add('lg:w-1/2');
secondDiv.classList.add('lg:w-1/2');
secondDiv?.classList.add('lg:w-1/2');
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions blocks/page-jump-menu/page-jump-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export default async function decorate(block) {
// For Mobile View
const dropdownList = createDropdownList(menus, currentTab, true);
const menuElement = document.querySelector('mobilemenu');
menuElement.appendChild(dropdownList);
menuElement?.appendChild(dropdownList);

block.innerHTML = '';
block.append(navList);

const selectEl = document.getElementById('selectedTabId');
selectEl.addEventListener('change', (event) => {
selectEl?.addEventListener('change', (event) => {
window.location.replace(event.target.value);
});

Expand Down

0 comments on commit 4860a71

Please sign in to comment.