mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): fix chrome 56 warning (#2906)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user