@douyinfe/semi-ui 2.17.0-beta.1 → 2.17.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/checkbox/checkbox.tsx +4 -1
- package/dist/css/semi.css +1 -1
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +16 -16
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/checkbox/checkbox.js +4 -1
- package/lib/es/checkbox/checkbox.js +4 -1
- package/package.json +7 -7
package/checkbox/checkbox.tsx
CHANGED
|
@@ -139,7 +139,10 @@ class Checkbox extends BaseComponent<CheckboxProps, CheckboxState> {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
isInGroup() {
|
|
142
|
-
|
|
142
|
+
// Why do we need to determine whether there is a value in props?
|
|
143
|
+
// If there is no value in the props of the checkbox in the context of the checkboxGroup,
|
|
144
|
+
// it will be considered not to belong to the checkboxGroup。
|
|
145
|
+
return Boolean(this.context && this.context.checkboxGroup && ('value' in this.props));
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
focus() {
|