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

Added fields lost on input. #8

Open
lekiy opened this issue Oct 5, 2015 · 1 comment
Open

Added fields lost on input. #8

lekiy opened this issue Oct 5, 2015 · 1 comment
Assignees
Labels

Comments

@lekiy
Copy link
Collaborator

lekiy commented Oct 5, 2015

Not sure if this is a bug, but pressing enter reloads the page; removing added fields.

@TheBox193
Copy link
Owner

Hmm, my guess is that hitting 'enter' is trying to submit the form. The default of a form is to submit the data to itself (same page), thus it looks like a reload. This will only affect the demo page.

On the demo page we could add something like the first code block in this answer to the demo page.
http://stackoverflow.com/a/895231
There are a couple other options in the answers as well.

Want to give it a try and see if that resolves it?
It will need to be run after jquery has been included on the demo page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants