From fe820fd05d161fd7fed73269645223875550fdb2 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Fri, 29 Sep 2017 21:34:15 -0700 Subject: [PATCH 1/2] fix(input): apply readonly attribute when readonly Fixes issue where the readonly attribute was no longer applied because it was made to be an `@Input` --- src/lib/input/input.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/input/input.ts b/src/lib/input/input.ts index c1681a97c2bf..6c70b62aa661 100644 --- a/src/lib/input/input.ts +++ b/src/lib/input/input.ts @@ -59,6 +59,7 @@ let nextUniqueId = 0; '[placeholder]': 'placeholder', '[disabled]': 'disabled', '[required]': 'required', + '[attr.readonly]': 'readonly', '[attr.aria-describedby]': '_ariaDescribedby || null', '[attr.aria-invalid]': 'errorState', '(blur)': '_focusChanged(false)', From 916de6baf551864cbe99499f6dc3b8b10fbcc753 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Fri, 29 Sep 2017 21:57:15 -0700 Subject: [PATCH 2/2] Update input.ts --- src/lib/input/input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/input/input.ts b/src/lib/input/input.ts index 6c70b62aa661..1e04098fa997 100644 --- a/src/lib/input/input.ts +++ b/src/lib/input/input.ts @@ -59,7 +59,7 @@ let nextUniqueId = 0; '[placeholder]': 'placeholder', '[disabled]': 'disabled', '[required]': 'required', - '[attr.readonly]': 'readonly', + '[readonly]': 'readonly', '[attr.aria-describedby]': '_ariaDescribedby || null', '[attr.aria-invalid]': 'errorState', '(blur)': '_focusChanged(false)',