Commit f1384b5
committed
fix: improve text field focus behavior with context menu
1. Add contextMenuVisible property to TextField to track menu visibility
2. Update SearchEdit's editting property to include contextMenuVisible
state
3. Modify EditPanel to show border when context menu is visible
4. Add onClosed handler to context menu to maintain text field focus
Log: Fixed text field losing focus when context menu is closed
Influence:
1. Test opening context menu in text fields and search inputs
2. Verify text field maintains focus after closing context menu
3. Check that search edit layout remains consistent during context menu
usage
4. Test border visibility in text fields when context menu is open
5. Verify search icon positioning in SearchEdit during context menu
operations
fix: 改进带上下文菜单的文本框焦点行为
1. 为 TextField 添加 contextMenuVisible 属性以跟踪菜单可见性
2. 更新 SearchEdit 的 editting 属性以包含上下文菜单可见状态
3. 修改 EditPanel 在上下文菜单可见时显示边框
4. 添加上下文菜单关闭时的处理程序以保持文本框焦点
Log: 修复关闭上下文菜单时文本框失去焦点的问题
Influence:
1. 测试在文本框和搜索输入中打开上下文菜单
2. 验证关闭上下文菜单后文本框保持焦点
3. 检查搜索编辑布局在上下文菜单使用期间保持一致
4. 测试上下文菜单打开时文本框的边框可见性
5. 验证上下文菜单操作期间 SearchEdit 中搜索图标的位置
PMS: BUG-3153331 parent fcf3631 commit f1384b5
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
0 commit comments