assui 2.0.85 → 2.0.89

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.
@@ -43,7 +43,9 @@ var LabelInput = function LabelInput(props) {
43
43
  focused = _a[0],
44
44
  setFocused = _a[1];
45
45
 
46
- var _b = __read(useControllableValue(props), 2),
46
+ var _b = __read(useControllableValue(props, {
47
+ defaultValue: ''
48
+ }), 2),
47
49
  value = _b[0],
48
50
  setValue = _b[1];
49
51
 
@@ -89,7 +91,7 @@ var LabelInput = function LabelInput(props) {
89
91
  "data-value": value ? value.length : 0,
90
92
  className: "label-input",
91
93
  type: "text",
92
- value: value,
94
+ value: value || '',
93
95
  onFocus: handleFocus,
94
96
  onBlur: handleBlur,
95
97
  onChange: handleChange
@@ -58,7 +58,9 @@ var LabelInput = function LabelInput(props) {
58
58
  focused = _a[0],
59
59
  setFocused = _a[1];
60
60
 
61
- var _b = __read(ahooks_1.useControllableValue(props), 2),
61
+ var _b = __read(ahooks_1.useControllableValue(props, {
62
+ defaultValue: ''
63
+ }), 2),
62
64
  value = _b[0],
63
65
  setValue = _b[1];
64
66
 
@@ -104,7 +106,7 @@ var LabelInput = function LabelInput(props) {
104
106
  "data-value": value ? value.length : 0,
105
107
  className: "label-input",
106
108
  type: "text",
107
- value: value,
109
+ value: value || '',
108
110
  onFocus: handleFocus,
109
111
  onBlur: handleBlur,
110
112
  onChange: handleChange
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.0.85",
3
+ "version": "2.0.89",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -33,7 +33,7 @@
33
33
  "@ahooksjs/use-url-state": "^2.5.8",
34
34
  "@tinymce/tinymce-react": "^3.13.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
- "a-icons": "^1.0.46",
36
+ "a-icons": "^1.0.47",
37
37
  "ahooks": "^3.0.8",
38
38
  "bignumber.js": "^9.0.1",
39
39
  "copy-to-clipboard": "^3.3.1",
@@ -69,5 +69,5 @@
69
69
  "node": ">=10.0.0"
70
70
  },
71
71
  "license": "MIT",
72
- "gitHead": "c085269f0865b407c557d602ef1f3fa41d6d5cbc"
72
+ "gitHead": "a022313d791999ef3ea6d64ca5c9dedb91086d64"
73
73
  }