From 62189a39162f6aea8456dcdf248f3e6cdc66d023 Mon Sep 17 00:00:00 2001 From: mmalerba Date: Sun, 5 Feb 2017 16:27:09 -0800 Subject: [PATCH] fix(input): fix chrome 56 warning (#2906) --- src/lib/core/platform/features.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/core/platform/features.ts b/src/lib/core/platform/features.ts index 0f25fab46f00..07b92702bb5b 100644 --- a/src/lib/core/platform/features.ts +++ b/src/lib/core/platform/features.ts @@ -5,9 +5,13 @@ export function getSupportedInputTypes(): Set { if (!supportedInputTypes) { let featureTestInput = document.createElement('input'); supportedInputTypes = new Set([ + // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after + // first changing it to something else: + // The specified value "" does not conform to the required format. + // The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers. + 'color', 'button', 'checkbox', - 'color', 'date', 'datetime-local', 'email',