assui 2.0.72 → 2.0.73

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.
@@ -81,6 +81,14 @@ var KeepTab = function KeepTab(props) {
81
81
  urlParams = _c[0],
82
82
  setUrlParams = _c[1];
83
83
 
84
+ React.useEffect(function () {
85
+ var _a;
86
+
87
+ if (tabActiveKey) {
88
+ setUrlParams((_a = {}, _a[saveActiveKeyName] = tabActiveKey, _a));
89
+ }
90
+ }, [tabActiveKey]);
91
+
84
92
  var handleTabChange = function handleTabChange(nextActiveKey) {
85
93
  var _a;
86
94
 
@@ -133,6 +133,14 @@ var KeepTab = function KeepTab(props) {
133
133
  urlParams = _c[0],
134
134
  setUrlParams = _c[1];
135
135
 
136
+ React.useEffect(function () {
137
+ var _a;
138
+
139
+ if (tabActiveKey) {
140
+ setUrlParams((_a = {}, _a[saveActiveKeyName] = tabActiveKey, _a));
141
+ }
142
+ }, [tabActiveKey]);
143
+
136
144
  var handleTabChange = function handleTabChange(nextActiveKey) {
137
145
  var _a;
138
146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.0.72",
3
+ "version": "2.0.73",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -69,5 +69,5 @@
69
69
  "node": ">=10.0.0"
70
70
  },
71
71
  "license": "MIT",
72
- "gitHead": "332c5de29178d5097701d4f16b22274ab025401b"
72
+ "gitHead": "a60e892b826887fec397bc27462cfee4a672abdc"
73
73
  }