stencil icon indicating copy to clipboard operation
stencil copied to clipboard

<input list=*> not parsing correctly

Open ArturoRodriguezRomero opened this issue 7 years ago • 5 comments

Stencil version:

 @stencil/[email protected] 

I'm submitting a:

[x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior: <input> list attribute not parsing correctly when inside a Stencil component.

Steps to reproduce:

  • Create a new component library proyect with npm init stencil.
  • Replace MyComponent render() with
render() {
    return (
      <div>
        <input list="list" />
        <datalist id="list">
          <option value="1" />
          <option value="2" />
          <option value="3" />
        </datalist>
      </div>
    );
  }
  • Rendered code will be image

Note that list="list" is gone from rendered code.

Other information:

Have tried with both:

  • shadow: true
  • shadow: false

If used inside index.html like this

<body>
  <input list="list" />
  <datalist id="list">
    <option value="1" />
    <option value="2" />
    <option value="3" />
  </datalist>
</body>

Behaviour works as expected

image

OS: macOS Sierra 10.14.5 Browser: Chrome, Firefox, Safari

ArturoRodriguezRomero avatar May 31 '19 11:05 ArturoRodriguezRomero

Ran into same issue recently.

cynx avatar Jul 01 '19 10:07 cynx

I can reproduce the issue too

cesalberca avatar Jul 19 '19 09:07 cesalberca

Same here in v1.4.0.

pfecht avatar Sep 13 '19 13:09 pfecht

Still an issue as of v1.5.4.

matt-mcelhaney avatar Oct 02 '19 12:10 matt-mcelhaney

Fixed! https://github.com/ionic-team/stencil/commit/73ea50e8007224f7f8bde9df29126dec39d3a943

manucorporat avatar Oct 10 '19 18:10 manucorporat