Static GitHub Issues

[1760] Input type being stripped on `nuxt generate`

prev: Parent component gets remounted when navigating to child routes
next: Modules added files - forces a recompile

After running nuxt generate an <input type="text" id="name"> becomes <input id="name">.

I made a demo repo here --> https://github.com/stursby/nuxt-tags-bug

For example, if I'm styling using the following, it's no longer applied after generating.

input[type=text] {
  background: lightgray;
  outline: none;
  border: none;
}

Here's what it looks like when running nuxt

image

And then after running nuxt generate

image

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1581">#c1581</a>)</em></sub></div>