test(centralui): TreeView keyboard-activation test + document preventDefault scope (T36a review)

This commit is contained in:
Joseph Doherty
2026-06-18 20:14:18 -04:00
parent fef4d4cf83
commit 828acd3266
2 changed files with 35 additions and 0 deletions
@@ -59,6 +59,9 @@ else
@onclick="() => ToggleExpand(key)"
@onclick:stopPropagation
@onkeydown="(e) => OnToggleKey(e, key)"
@* preventDefault suppresses Space-bar page scroll on activation (intended for a role=button).
It also suppresses Arrow-key default scroll while the toggle itself has focus — acceptable,
as the chevron is Tab-navigated and Blazor offers no per-key conditional preventDefault. *@
@onkeydown:preventDefault><i class="bi bi-chevron-right"></i></span>
}
else