Skip to content

Commit f2a18cf

Browse files
authored
fix(ui5-radiobutton): fix keyboard handling on TAB/SHIFT+TAB (#231)
1 parent a4915df commit f2a18cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/RadioButtonTemplateContext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class RadioButtonTemplateContext {
2525
context = {
2626
ctr: state,
2727
readOnly: state.disabled || state.readOnly,
28-
tabIndex: state.disabled ? undefined : "0",
28+
tabIndex: state.disabled || (!state.selected && state.group) ? "-1" : "0",
2929
circle: compact ? SVGConfig.compact : SVGConfig.default,
3030
classes: { main: mainClasses, inner: innerClasses },
3131
styles: {

0 commit comments

Comments
 (0)