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

Duplicate form data when submitting #1

Closed
triszt4n opened this issue May 7, 2020 · 1 comment
Closed

Duplicate form data when submitting #1

triszt4n opened this issue May 7, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@triszt4n
Copy link

triszt4n commented May 7, 2020

I use bulma-tagsinput in a form with name attribute "tags". See this (written in pug.js):

form(id="group-form")
  .field
    label.label Name of group
    .control
      input.input(type="text", name="name", placeholder="Discrete Maths" required)
  .field
    label.label(for="tags") Tags
    .control
      input.input(type="tags", name="tags", id="tags", placeholder="Add tags", value="midterm")
(...)

When I would submit the form, FormData shows two objects under the same key: "tags". One of them has the value of a blank string, the other's value has the data from tagsinput.

Can you tell me what could be behind this?

I already solved it with deleting the blank object, yet I want to know if I was wrong and I could have solved the duplication problem.

@CreativeBulma CreativeBulma self-assigned this May 8, 2020
@CreativeBulma CreativeBulma added the bug Something isn't working label May 8, 2020
@CreativeBulma
Copy link
Owner

Hi @triszt4n,

Thanks to report this bug. You did nothing wrong it's just the name attribute that was duplicated on the input generated by TagsInput. Fix is coming very soon.

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants