From c1f98a3c51c0d20137007479619a9a604d023a9a Mon Sep 17 00:00:00 2001 From: ilhan orhan Date: Wed, 20 Mar 2019 15:12:58 +0200 Subject: [PATCH] fix(ui5-checkbox): correct setting of aria-readonly (#220) --- packages/main/src/CheckBoxTemplateContext.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/main/src/CheckBoxTemplateContext.js b/packages/main/src/CheckBoxTemplateContext.js index 18b2977c7439..739f82ba4f99 100644 --- a/packages/main/src/CheckBoxTemplateContext.js +++ b/packages/main/src/CheckBoxTemplateContext.js @@ -7,7 +7,7 @@ class CheckBoxTemplateContext { const context = { ctr: state, - readOnly: !state.disabled, + ariaReadonly: state.readOnly, tabIndex: state.disabled ? undefined : "0", classes: { main: mainClasses, inner: innerClasses }, styles: { @@ -15,8 +15,6 @@ class CheckBoxTemplateContext { }, }; - context.ariaReadonly = context.readOnly ? "true" : undefined; - return context; }