Skip to content

Commit

Permalink
fix(ui5-checkbox): correct setting of aria-readonly (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhan007 authored Mar 20, 2019
1 parent 5dd912f commit c1f98a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/main/src/CheckBoxTemplateContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ class CheckBoxTemplateContext {

const context = {
ctr: state,
readOnly: !state.disabled,
ariaReadonly: state.readOnly,
tabIndex: state.disabled ? undefined : "0",
classes: { main: mainClasses, inner: innerClasses },
styles: {
main: {},
},
};

context.ariaReadonly = context.readOnly ? "true" : undefined;

return context;
}

Expand Down

0 comments on commit c1f98a3

Please sign in to comment.