@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.
@@ -139,7 +139,10 @@ class Checkbox extends BaseComponent<CheckboxProps, CheckboxState> {
139
139
  }
140
140
 
141
141
  isInGroup() {
142
- return Boolean(this.context && this.context.checkboxGroup);
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() {
package/dist/css/semi.css CHANGED
@@ -519,7 +519,7 @@ body[theme-mode=dark], body .semi-always-dark {
519
519
  .semi-portal-inner {
520
520
  position: absolute;
521
521
  background-color: transparent;
522
- min-width: fit-content;
522
+ min-width: max-content;
523
523
  }
524
524
 
525
525
  .semi-anchor {