fix(input): fix chrome 56 warning (#2906)

This commit is contained in:
mmalerba
2017-02-05 16:27:09 -08:00
committed by Kara
parent 8d900e0b3d
commit 62189a3916
+5 -1
View File
@@ -5,9 +5,13 @@ export function getSupportedInputTypes(): Set<string> {
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',