Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

The reset button resets other buttons #626

Open
aik099 opened this issue Dec 19, 2013 · 4 comments
Open

The reset button resets other buttons #626

aik099 opened this issue Dec 19, 2013 · 4 comments

Comments

@aik099
Copy link

aik099 commented Dec 19, 2013

When clicking on <input type="reset" .../> button it too aggressively resets the form, which results in submit/reset (and maybe other buttons) value set to undefined.

Before:

<input type="reset" value="Reset" />
<input type="submit" value="Save" />

After:

<input type="reset" value="undefined" />
<input type="submit" value="undefined" />

It appears, that these 2 input types (submit & reset) don't have _defaultValue property at all.

@aik099
Copy link
Author

aik099 commented Dec 25, 2013

@assaf, were you able to reproduce this?

@assaf
Copy link
Owner

assaf commented Jan 16, 2014

That's a bug for sure.

@aik099
Copy link
Author

aik099 commented Apr 22, 2014

You want a test case. Here you go:

  1. create HTML page with the HTML from task description
  2. call the reset method of the form
  3. both inputs should retain their values, since they are buttons

@aik099
Copy link
Author

aik099 commented May 1, 2014

I've provided a reproduction scenario, but nothing changed. Will this be fixed?

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

No branches or pull requests

2 participants