Commit 5dfcf11
fix: clear stale checkmark in datetime timezone add dialog
1. Remove checkable and autoExclusive properties from D.MenuItem delegate
in the timezone add popup since the dialog closes on a single click
2. Update onClicked handler to add the timezone based solely on zoneId
existence, independent of the checked state
3. Prevent a stale checkmark from persisting when the add dialog is
reopened, so the list shows no selection
4. Fix the case where re-clicking the previously selected item fails to
add the timezone because checked is toggled to false
Log: Removed persistent checked state in the datetime timezone add dialog so the list shows no checkmark on reopen
Influence:
1. Open the timezone add dialog and select a timezone - it should be added and the dialog closes
2. Reopen the add dialog - no item should display a checkmark
3. Select the previously added timezone again - it should be skipped if already in the user list, without being blocked
4. Verify keyboard navigation and hover highlight still work correctly
fix: 清除日期时间时区添加弹窗中残留的勾选状态
1. 移除时区添加弹窗中 D.MenuItem 代理的 checkable 和 autoExclusive
属性,因为该弹窗为单击即关闭的单选交互
2. 更新 onClicked 处理逻辑,仅依据 zoneId 是否已存在来决定是否添加,
不再依赖 checked 状态
3. 避免再次打开添加弹窗时残留上次的勾选标记,使列表不显示选中项
4. 修复再次点击上次选中项时因 checked 被 toggle 为 false 导致时区
无法添加的问题
Log: 移除日期时间时区添加弹窗中残留的勾选状态,使列表重新打开时不显示勾选项
Influence:
1. 打开时区添加弹窗并选择一个时区 - 应被添加且弹窗关闭
2. 再次打开添加弹窗 - 不应显示任何勾选项
3. 再次选择上一次添加的时区 - 若已在用户时区列表中则跳过,不应被阻止
4. 验证键盘导航与悬停高亮仍正常工作
PMS: BUG-3676731 parent 11ad726 commit 5dfcf11
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
513 | | - | |
514 | 512 | | |
515 | 513 | | |
516 | 514 | | |
| |||
537 | 535 | | |
538 | 536 | | |
539 | 537 | | |
540 | | - | |
| 538 | + | |
541 | 539 | | |
542 | 540 | | |
543 | 541 | | |
| |||
0 commit comments