Skip to content

Commit 3a89358

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): don't show [NG HMR] Unknown input type when restoring file type input
1 parent 37b9493 commit 3a89358

File tree

1 file changed

+4
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/plugins/hmr

1 file changed

+4
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts

+4
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ function restoreFormValues(oldInputs: any[], oldOptions: any[]): void {
211211
case 'week':
212212
newElement.value = oldElement.value;
213213
break;
214+
case 'file':
215+
// Ignored due: Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement':
216+
// This input element accepts a filename, which may only be programmatically set to the empty string.
217+
break;
214218
default:
215219
console.warn('[NG HMR] Unknown input type ' + oldElement.type + '.');
216220
continue;

0 commit comments

Comments
 (0)