{
+ if (this.props.status) {
+ this.props.status.popup.topping(popup);
+ }
+ }}
>
{this.renderDragLine(ResizeDragDirection.top, popup)}
diff --git a/source/Context/Popups.ts b/source/Context/Popups.ts
index 561832c..e5e4cd6 100644
--- a/source/Context/Popups.ts
+++ b/source/Context/Popups.ts
@@ -163,8 +163,12 @@ class PopupController extends Emitter {
newPopup = new (popup ?? Popup)(props);
}
newPopup.init(this, `P-${this.idIndex ++}`);
- this.popups.push(newPopup);
- this.sortPopup();
+
+ // 延迟渲染防止焦点冲突
+ setTimeout(() => {
+ this.popups.push(newPopup);
+ this.sortPopup();
+ });
return newPopup;
}
diff --git a/source/Localization/EN-US.ts b/source/Localization/EN-US.ts
index 9e858c0..124c4f1 100644
--- a/source/Localization/EN-US.ts
+++ b/source/Localization/EN-US.ts
@@ -54,6 +54,7 @@ const EN_US = {
"Popup.Setting.Title": "Preferences setting",
"Popup.Add.Behavior.Title": "Add behavior",
"Popup.Add.Behavior.Action.Add": "Add all select behavior",
+ "Popup.Add.Behavior.Select.Counter": "Selected {count} behavior",
"Popup.Behavior.Info.Title": "Behavior details: {behavior}",
"Popup.Behavior.Info.Confirm": "OK, I know it",
"Build.In.Label.Name.All.Group": "All group",
diff --git a/source/Localization/ZH-CN.ts b/source/Localization/ZH-CN.ts
index 1283176..3495892 100644
--- a/source/Localization/ZH-CN.ts
+++ b/source/Localization/ZH-CN.ts
@@ -54,6 +54,7 @@ const ZH_CN = {
"Popup.Setting.Title": "首选项设置",
"Popup.Add.Behavior.Title": "添加行为",
"Popup.Add.Behavior.Action.Add": "添加全部选中行为",
+ "Popup.Add.Behavior.Select.Counter": "已选择 {count} 个行为",
"Popup.Behavior.Info.Title": "行为详情: {behavior}",
"Popup.Behavior.Info.Confirm": "好的, 我知道了",
"Build.In.Label.Name.All.Group": "全部群",