We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49841f8 commit 3c2da34Copy full SHA for 3c2da34
packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.js
@@ -193,7 +193,7 @@ export default function (mod) {
193
194
dispatchEvents(newElement);
195
}
196
- } else {
+ } else if (oldInputs.length) {
197
console.warn('[NG HMR] Cannot restore input/textarea values.');
198
199
@@ -207,8 +207,8 @@ export default function (mod) {
207
208
209
210
+ } else if (oldOptions.length) {
211
console.warn('[NG HMR] Cannot restore selected options.');
212
213
214
-}
+}
0 commit comments