Skip to content

Commit 62189a3

Browse files
mmalerbakara
authored andcommitted
fix(input): fix chrome 56 warning (#2906)
1 parent 8d900e0 commit 62189a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/core/platform/features.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ export function getSupportedInputTypes(): Set<string> {
55
if (!supportedInputTypes) {
66
let featureTestInput = document.createElement('input');
77
supportedInputTypes = new Set([
8+
// `color` must come first. Chrome 56 shows a warning if we change the type to `color` after
9+
// first changing it to something else:
10+
// The specified value "" does not conform to the required format.
11+
// The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
12+
'color',
813
'button',
914
'checkbox',
10-
'color',
1115
'date',
1216
'datetime-local',
1317
'email',

0 commit comments

Comments
 (0)