Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): don't show `[NG HMR] Unknown inpu…
Browse files Browse the repository at this point in the history
…t type` when restoring file type input

(cherry picked from commit 3a89358)
  • Loading branch information
alan-agius4 authored and clydin committed Nov 4, 2021
1 parent 1cdc24d commit facb5d8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -211,6 +211,10 @@ function restoreFormValues(oldInputs: any[], oldOptions: any[]): void {
case 'week':
newElement.value = oldElement.value;
break;
case 'file':
// Ignored due: Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement':
// This input element accepts a filename, which may only be programmatically set to the empty string.
break;
default:
console.warn('[NG HMR] Unknown input type ' + oldElement.type + '.');
continue;
Expand Down

0 comments on commit facb5d8

Please sign in to comment.