Skip to content

Button form attribute does not render/missing after compiled in DOM #2703

@liho98

Description

@liho98

Stencil version:

 @stencil/core@ <^1.17.3>

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:
image
image
you can see the form attribute is missing after compile in DOM.

Expected behavior:

I want the form attribute to work, so i can handle multiple form submission.

Steps to reproduce:
just add form attribute in tag

Related code:

      <Host style={{ all: "unset" }}>
        <button
          type={this.type}
          style={this.buttonStyle}
          class={`rm-button--button ${this.class}`}
          value="Submit"
          form="form1"
        >
          <slot></slot>
        </button>
      </Host>

Other information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions