@bento-core/facet-filter 1.0.1-ccdiintegrated.4 → 1.0.1-ccdiintegrated.5

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.
@@ -38,7 +38,8 @@ const FilterItems = _ref => {
38
38
  return /*#__PURE__*/_react.default.createElement(_ReduxSlider.default, {
39
39
  facet: facet,
40
40
  queryParams: queryParams,
41
- timeUnit: timeUnit
41
+ timeUnit: timeUnit,
42
+ basePath: basePath
42
43
  });
43
44
  }
44
45
  if (type !== _Types.InputTypes.CHECKBOX) {
@@ -74,8 +74,10 @@ const SearchFilterItems = _ref => {
74
74
  queryParams: queryParams
75
75
  }));
76
76
  (0, _react.useEffect)(() => {
77
- scrollableRef.current.scrollTo(0, 0);
78
77
  setDisplayCount(initialItemSize);
78
+ if (scrollableRef.current) {
79
+ scrollableRef.current.scrollTo(0, 0);
80
+ }
79
81
  }, [searchText]);
80
82
  const handleScroll = e => {
81
83
  if (displayCount < newUncheckedFullList.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/facet-filter",
3
- "version": "1.0.1-ccdiintegrated.4",
3
+ "version": "1.0.1-ccdiintegrated.5",
4
4
  "description": "### Bento core sidebar design:",
5
5
  "homepage": "https://github.com/CBIIT/bento-frontend#readme",
6
6
  "bugs": {
@@ -23,7 +23,12 @@ const FilterItems = ({
23
23
 
24
24
  if (type === InputTypes.SLIDER) {
25
25
  return (
26
- <ReduxSlider facet={facet} queryParams={queryParams} timeUnit={timeUnit} />
26
+ <ReduxSlider
27
+ facet={facet}
28
+ queryParams={queryParams}
29
+ timeUnit={timeUnit}
30
+ basePath={basePath}
31
+ />
27
32
  );
28
33
  }
29
34
 
@@ -63,8 +63,10 @@ const SearchFilterItems = ({
63
63
  />));
64
64
 
65
65
  useEffect(() => {
66
- scrollableRef.current.scrollTo(0, 0);
67
66
  setDisplayCount(initialItemSize);
67
+ if (scrollableRef.current) {
68
+ scrollableRef.current.scrollTo(0, 0);
69
+ }
68
70
  }, [searchText]);
69
71
 
70
72
  const handleScroll = (e) => {