@ons/design-system 45.1.4 → 45.2.2

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.
package/js/inpagelink.js CHANGED
@@ -1,14 +1,12 @@
1
1
  export default function inPageLinks(links) {
2
- if (document.getElementById('patternlib-page__example') === null) {
3
- links.forEach(link => {
4
- const id = link.getAttribute('href').replace('#', '');
2
+ links.forEach(link => {
3
+ const id = link.getAttribute('href').replace('#', '');
5
4
 
6
- link.addEventListener('click', event => {
7
- event.preventDefault();
8
- focusOnInput(id);
9
- });
5
+ link.addEventListener('click', event => {
6
+ event.preventDefault();
7
+ focusOnInput(id);
10
8
  });
11
- }
9
+ });
12
10
  }
13
11
 
14
12
  function focusOnInput(id) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "45.1.4",
4
+ "version": "45.2.2",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {