@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.
@@ -91,7 +91,7 @@
91
91
  function verb(n) { return function (v) { return step([n, v]); }; }
92
92
  function step(op) {
93
93
  if (f) throw new TypeError("Generator is already executing.");
94
- while (_) try {
94
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
95
95
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
96
96
  if (y = 0, t) op = [op[0] & 2, t.value];
97
97
  switch (op[0]) {
@@ -1769,7 +1769,8 @@
1769
1769
  });
1770
1770
  };
1771
1771
  TuiDocNavigationComponent.prototype.navigateToAnchorLink = function (fragment) {
1772
- var element = fragment && this.documentRef.querySelector("#" + fragment);
1772
+ var nodes = fragment ? this.documentRef.querySelectorAll("#" + fragment) : [];
1773
+ var element = nodes.length && nodes[nodes.length - 1];
1773
1774
  if (!element) {
1774
1775
  return;
1775
1776
  }