@rh-support/troubleshoot 2.2.1850-beta.1 → 2.2.1851-beta.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.
|
@@ -8,7 +8,7 @@ interface IProps {
|
|
|
8
8
|
resultsRowRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Responsible for:
|
|
11
|
+
* Responsible for :
|
|
12
12
|
* # Setting case state with product version from url.
|
|
13
13
|
* # Removing hidden Suggestion section on product version change.
|
|
14
14
|
* # Validating next section button.
|
|
@@ -12,7 +12,7 @@ import Recommendations from '../Recommendations/Recommendations';
|
|
|
12
12
|
import { AllProductsSelector } from './AllProductsSelector';
|
|
13
13
|
import { ProductSelectorLoader } from './ProductSelectorLoader';
|
|
14
14
|
/**
|
|
15
|
-
* Responsible for:
|
|
15
|
+
* Responsible for :
|
|
16
16
|
* # Setting case state with product version from url.
|
|
17
17
|
* # Removing hidden Suggestion section on product version change.
|
|
18
18
|
* # Validating next section button.
|
|
@@ -76,7 +76,7 @@ function WizardNavigation(props) {
|
|
|
76
76
|
// console.log({ hasUserScrolled });
|
|
77
77
|
const boundingRect = entry.boundingClientRect;
|
|
78
78
|
const isScrollingUp = boundingRect.top > 0;
|
|
79
|
-
const isAboveThreshold = entry.intersectionRatio >= 0.
|
|
79
|
+
const isAboveThreshold = entry.intersectionRatio >= 0.3;
|
|
80
80
|
isAboveThreshold && props.setUserCanNavigateToTroubleshoot(true);
|
|
81
81
|
isAboveThreshold && props.setUserSeenRecommendations(true);
|
|
82
82
|
// If scrolling up, always use the threshold check
|
|
@@ -92,7 +92,7 @@ function WizardNavigation(props) {
|
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
94
|
root: null,
|
|
95
|
-
threshold: [0, 0.
|
|
95
|
+
threshold: [0, 0.3], // Changing threshold value to have its effect on pagination when page size is more than 10.
|
|
96
96
|
rootMargin: '0px',
|
|
97
97
|
});
|
|
98
98
|
const resultsRowElement = props.resultsRowRef.current;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1851-beta.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"defaults and supports es6-module",
|
|
134
134
|
"maintained node versions"
|
|
135
135
|
],
|
|
136
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "cf9a4f42874fad107c9550f17809277d82b2d15b"
|
|
137
137
|
}
|