@netless/telebox-insider 0.3.0-beta.0 → 0.3.0-beta.2

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.
@@ -2903,8 +2903,8 @@ class TeleBoxManager {
2903
2903
  }
2904
2904
  if (topBox && topBoxId !== topBox.id) {
2905
2905
  this.makeBoxTop(topBox, skipUpdate);
2906
- this.focusTopBox();
2907
2906
  this.topBox$.setValue(topBox);
2907
+ this.focusTopBox();
2908
2908
  }
2909
2909
  if (this.maxTitleBar) {
2910
2910
  this.maxTitleBar.setBoxesStatus(boxesStatus);
@@ -2973,7 +2973,7 @@ class TeleBoxManager {
2973
2973
  this.setBoxStatus(box.id, TELE_BOX_STATE.Normal);
2974
2974
  } else {
2975
2975
  this.boxes.forEach((box2) => {
2976
- if (box2.boxStatus !== TELE_BOX_STATE.Maximized) {
2976
+ if (box2.boxStatus === TELE_BOX_STATE.Normal) {
2977
2977
  this.setBoxStatus(box2.id, TELE_BOX_STATE.Maximized);
2978
2978
  }
2979
2979
  });