Skip to content

Commit

Permalink
fix(input): fix chrome 56 warning (#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba authored and kara committed Feb 6, 2017
1 parent 8d900e0 commit 62189a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/core/platform/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 62189a3

Please sign in to comment.