Skip to content

Commit 165cc10

Browse files
fix: suppress tab stop due to focus listener (#207)
Previous demo tab stops: button, select, toolbox, parentSvg, svgGroup New demo tab stops: button, select, toolbox, svgGroup Remaining related tab stop/high-level focus issues: - toolbox is still an invisible tab stop - parentSvg is focussed programatically after a field edit, at which point there's no longer a workspace focus outline Part of #180
1 parent 35964d4 commit 165cc10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export class KeyboardNavigation {
7878
this.workspaceParentTabIndex = workspace
7979
.getParentSvg()
8080
.getAttribute('tabindex');
81-
workspace.getParentSvg().removeAttribute('tabindex');
81+
// We add a focus listener below so use -1 so it doesn't become focusable.
82+
workspace.getParentSvg().setAttribute('tabindex', '-1');
8283

8384
this.focusListener = () => {
8485
this.navigationController.setHasFocus(workspace, true);

0 commit comments

Comments
 (0)