You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this form with aspnet-client-validation, a hidden input gets created upon submit button click in order to POST the button's value. It seems this behavior was introduced here in order to work around limitations of .submit() in JavaScript: #52
The issue with this is that the hidden input does not get cleaned up after instantiation, and the page does not reload in this instance due to the nature of a FileContentResult endpoint. This causes conflicts when clicking a different submit button later as the hidden input will override its value due to possessing the same name attribute value ("format").
The text was updated successfully, but these errors were encountered:
Consider a form like the following that POSTs to an endpoint that returns a
FileContentResult
:When using this form with
aspnet-client-validation
, a hidden input gets created upon submit button click in order to POST the button's value. It seems this behavior was introduced here in order to work around limitations of.submit()
in JavaScript: #52The issue with this is that the hidden input does not get cleaned up after instantiation, and the page does not reload in this instance due to the nature of a
FileContentResult
endpoint. This causes conflicts when clicking a different submit button later as the hidden input will override its value due to possessing the samename
attribute value ("format").The text was updated successfully, but these errors were encountered: