Skip to content

Commit

Permalink
VACMS-19375: Fix for undefined anchor links. (#20094)
Browse files Browse the repository at this point in the history
* VACMS-19375: Fix for undefined anchor links.

* VACMS-19375: Added comment.
  • Loading branch information
anantais authored Dec 13, 2024
1 parent 43630de commit 96db4ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docroot/themes/custom/vagovclaro/assets/js/anchor_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

Drupal.behaviors.vagovclaroAnchorLinks = {
attach: function attach() {
$('a[href^="#"][href!="#"]:not([href^="#edit-group"])').click(function (event) {
//removed XOR operator because it was causing an issue where anchor lins were undefined VACMS-19375
$('a[href="#"][href!="#"]:not([href^="#edit-group"])').click(function (event) {
event.preventDefault();

var target = $(event.target).attr("href");
Expand Down

0 comments on commit 96db4ed

Please sign in to comment.