test(centralui): TreeView keyboard-activation test + document preventDefault scope (T36a review)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user