@atlaskit/navigation-system 5.8.0 → 5.8.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 5.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c60dda81827ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c60dda81827ec) -
8
+ Type fixes for scrollIntoViewIfNeeded
9
+
3
10
  ## 5.8.0
4
11
 
5
12
  ### Minor Changes
@@ -17,8 +17,9 @@ function scrollMenuItemIntoView(element) {
17
17
  *
18
18
  * Otherwise, we are falling back to [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
19
19
  */
20
- if (typeof element.scrollIntoViewIfNeeded === 'function') {
21
- element.scrollIntoViewIfNeeded(true);
20
+ var elementWithScrollMethod = element;
21
+ if (typeof elementWithScrollMethod.scrollIntoViewIfNeeded === 'function') {
22
+ elementWithScrollMethod.scrollIntoViewIfNeeded(true);
22
23
  return;
23
24
  }
24
25
 
@@ -10,8 +10,9 @@ function scrollMenuItemIntoView(element) {
10
10
  *
11
11
  * Otherwise, we are falling back to [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
12
12
  */
13
- if (typeof element.scrollIntoViewIfNeeded === 'function') {
14
- element.scrollIntoViewIfNeeded(true);
13
+ const elementWithScrollMethod = element;
14
+ if (typeof elementWithScrollMethod.scrollIntoViewIfNeeded === 'function') {
15
+ elementWithScrollMethod.scrollIntoViewIfNeeded(true);
15
16
  return;
16
17
  }
17
18
 
@@ -10,8 +10,9 @@ function scrollMenuItemIntoView(element) {
10
10
  *
11
11
  * Otherwise, we are falling back to [scrollIntoView](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView).
12
12
  */
13
- if (typeof element.scrollIntoViewIfNeeded === 'function') {
14
- element.scrollIntoViewIfNeeded(true);
13
+ var elementWithScrollMethod = element;
14
+ if (typeof elementWithScrollMethod.scrollIntoViewIfNeeded === 'function') {
15
+ elementWithScrollMethod.scrollIntoViewIfNeeded(true);
15
16
  return;
16
17
  }
17
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "5.8.0",
3
+ "version": "5.8.1",
4
4
  "description": "The latest navigation system for Atlassian apps.",
5
5
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
6
6
  "author": "Atlassian Pty Ltd",