Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix & suffix are received when using iron-form #216

Closed
abdonrd opened this issue Apr 6, 2018 · 2 comments
Closed

prefix & suffix are received when using iron-form #216

abdonrd opened this issue Apr 6, 2018 · 2 comments

Comments

@abdonrd
Copy link
Contributor

abdonrd commented Apr 6, 2018

When I use it in a form, the event.detail has prefix & suffix as undefined.

@abdonrd abdonrd changed the title Get prefix & suffix when using iron-form prefix & suffix are received when using iron-form Apr 6, 2018
@tomivirkki tomivirkki added the needs triage Has to be triaged by the team label Apr 9, 2018
@samiheikki
Copy link
Contributor

samiheikki commented Aug 20, 2018

Tried this and cannot reproduce with current master with the following code block:

<iron-form id="form1" method="get">
      <form>
        <vaadin-text-field name="text-field">
          <div slot="prefix">$</div>
          <div slot="suffix">€</div>
        </vaadin-text-field>
        <vaadin-button onclick="form1.submit()">Submit</vaadin-button>
      </form>
    </iron-form>
    <script>
      form1.addEventListener('iron-form-submit', function(event) {
        console.log(event.detail);
      });
    </script>

event.detail: {text-field: "asd"}

@samiheikki
Copy link
Contributor

Discussed with @tomivirkki and decided to close the ticket.

Issue is only reproducible if removing name attribute from a component with named slots (like vaadin-text-field) so the issue is due to iron-form.

@tomivirkki tomivirkki removed the needs triage Has to be triaged by the team label Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants