Skip to content

Commit

Permalink
Merge pull request #8464 from cfpb/extra-fig-fix
Browse files Browse the repository at this point in the history
Handle case where span is clicked
  • Loading branch information
wpears authored Jun 12, 2024
2 parents 678aa37 + dcc5449 commit 214a411
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const handleMobileNav = (event) => {
}, 300);
} else if (event.target.matches('.o-fig__section--sub a')) {
defaultScrollOffset(event.target);
} else if (event.target.matches('.o-fig__section--sub a > span')) {
defaultScrollOffset(event.target.parentNode);
}
};

Expand Down

0 comments on commit 214a411

Please sign in to comment.