Skip to content

Commit

Permalink
Prevent handleScreenResize() from collapsing manually unfolded cards
Browse files Browse the repository at this point in the history
  • Loading branch information
tony1ee committed Apr 29, 2024
1 parent 7e94b92 commit 4262f25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
else{
const columns = document.querySelectorAll('.mobile-dropdown');
for(let column of columns){
if (column.previousElementSibling.classList.contains('active')){
// when collapsing cards, skip the ones unfolded manually
continue;
}
column.style.display='none';
}
}
Expand Down

0 comments on commit 4262f25

Please sign in to comment.