@taiga-ui/addon-doc 2.68.0 → 2.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1532,7 +1532,8 @@ var TuiDocNavigationComponent = /** @class */ (function () {
1532
1532
  });
1533
1533
  };
1534
1534
  TuiDocNavigationComponent.prototype.navigateToAnchorLink = function (fragment) {
1535
- var element = fragment && this.documentRef.querySelector("#" + fragment);
1535
+ var nodes = fragment ? this.documentRef.querySelectorAll("#" + fragment) : [];
1536
+ var element = nodes.length && nodes[nodes.length - 1];
1536
1537
  if (!element) {
1537
1538
  return;
1538
1539
  }