Skip to content

Commit c1f98a3

Browse files
authored
fix(ui5-checkbox): correct setting of aria-readonly (#220)
1 parent 5dd912f commit c1f98a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/main/src/CheckBoxTemplateContext.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ class CheckBoxTemplateContext {
77

88
const context = {
99
ctr: state,
10-
readOnly: !state.disabled,
10+
ariaReadonly: state.readOnly,
1111
tabIndex: state.disabled ? undefined : "0",
1212
classes: { main: mainClasses, inner: innerClasses },
1313
styles: {
1414
main: {},
1515
},
1616
};
1717

18-
context.ariaReadonly = context.readOnly ? "true" : undefined;
19-
2018
return context;
2119
}
2220

0 commit comments

Comments
 (0)