@tidbcloud/uikit 2.0.5 → 2.0.7
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tidbcloud/uikit
|
|
2
2
|
|
|
3
|
+
## 2.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(uikit): pass null value for Select when value is empty string ([#454](https://github.com/tidbcloud/tidbcloud-uikit/pull/454))
|
|
8
|
+
|
|
9
|
+
## 2.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix/search area bug fix ([#452](https://github.com/tidbcloud/tidbcloud-uikit/pull/452))
|
|
14
|
+
|
|
3
15
|
## 2.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -15,7 +15,8 @@ function useCreateableSelect(props) {
|
|
|
15
15
|
throw new Error("`onCreate` is required when `creatable` is true");
|
|
16
16
|
}
|
|
17
17
|
const [value, setValue] = useUncontrolled.useUncontrolled({
|
|
18
|
-
value: props.value,
|
|
18
|
+
value: props.value || null,
|
|
19
|
+
// use null value to clear input
|
|
19
20
|
onChange: props.onChange,
|
|
20
21
|
defaultValue: props.defaultValue
|
|
21
22
|
});
|
|
@@ -13,7 +13,8 @@ function useCreateableSelect(props) {
|
|
|
13
13
|
throw new Error("`onCreate` is required when `creatable` is true");
|
|
14
14
|
}
|
|
15
15
|
const [value, setValue] = useUncontrolled({
|
|
16
|
-
value: props.value,
|
|
16
|
+
value: props.value || null,
|
|
17
|
+
// use null value to clear input
|
|
17
18
|
onChange: props.onChange,
|
|
18
19
|
defaultValue: props.defaultValue
|
|
19
20
|
});
|