@spscommerce/ds-react 5.1.0 → 5.2.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.
package/lib/index.es.js CHANGED
@@ -1552,6 +1552,10 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
1552
1552
  handleKeyDown(keyDown);
1553
1553
  }, [keyDown]);
1554
1554
  React.useEffect(() => {
1555
+ if (!isOpen && optionsRef.current) {
1556
+ searchStatePatch({ value: "" });
1557
+ optionsRef.current.scrollTop = 0;
1558
+ }
1555
1559
  if (isOpen && onPositionFlip) {
1556
1560
  onPositionFlip(openingUpward);
1557
1561
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spscommerce/ds-react",
3
3
  "description": "SPS Design System React components",
4
- "version": "5.1.0",
4
+ "version": "5.2.0",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@react-stately/collections": "^3.3.3",
31
- "@spscommerce/ds-colors": "5.1.0",
32
- "@spscommerce/ds-shared": "5.1.0",
33
- "@spscommerce/positioning": "5.1.0",
34
- "@spscommerce/utils": "5.1.0",
31
+ "@spscommerce/ds-colors": "5.2.0",
32
+ "@spscommerce/ds-shared": "5.2.0",
33
+ "@spscommerce/positioning": "5.2.0",
34
+ "@spscommerce/utils": "5.2.0",
35
35
  "moment": "^2.25.3",
36
36
  "moment-timezone": "^0.5.28",
37
37
  "react": "^16.9.0",
@@ -39,10 +39,10 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@react-stately/collections": "^3.3.3",
42
- "@spscommerce/ds-colors": "5.1.0",
43
- "@spscommerce/ds-shared": "5.1.0",
44
- "@spscommerce/positioning": "5.1.0",
45
- "@spscommerce/utils": "5.1.0",
42
+ "@spscommerce/ds-colors": "5.2.0",
43
+ "@spscommerce/ds-shared": "5.2.0",
44
+ "@spscommerce/positioning": "5.2.0",
45
+ "@spscommerce/utils": "5.2.0",
46
46
  "@testing-library/jest-dom": "^4.2.4",
47
47
  "@testing-library/react": "^9.3.2",
48
48
  "@types/prop-types": "^15.7.1",