fix: complete submenu panel ARIA, focus and event passthrough

- Submenu panel name priority is explicit aria-label > menu content channel >
  this instance's trigger; an explicit label drops the id reference so it cannot
  be shadowed.
- openAutoFocus and animationend chain with the caller's handlers like keydown
  and interact-outside, so caller callbacks run and can cancel.
- The panel loop falls back to the menu-level shouldFocusWrap and is always
  passed as a boolean: an undefined -> true update is dropped by the base prop
  chain, so the menu policy never applied.
- Add a jsdom CSSOM polyfill for CSS.escape via vitest setupFiles; the
  animationend test no longer raises an unhandled error.
This commit is contained in:
maoyingjie
2026-10-25 00:01:24 +08:00
parent b474a63303
commit 2e4b376537
9 changed files with 223 additions and 20 deletions
+4
View File
@@ -42,3 +42,7 @@
- 不新增SSR/水合/Nuxt验收,不把未重做的完整读屏/触屏/逐像素当作通过。
修复后按原整批清单复验受影响的默认/显式关闭策略、根/子事件及参数、独立Menu名称,并保持层级/Portal/Modal已通过路径。继续当前任务分支,交回复核,不合main、不推送。
## b474a63 后续复核
原7项已修复通过。当前仅原R9子面板ARIA/事件/loop分支及测试环境异常未完成,详见 [B01-b474a63-review.md](./B01-b474a63-review.md)。三级中间焦点未固化自动断言不作为新增门槛。