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

Update how FormTagHelper handles get method attributes. #6207

Merged
merged 1 commit into from Apr 25, 2017

Conversation

NTaylorMullen
Copy link
Member

  • Added functional test to verify asp-* attributes on form taghelpers work as expected.
  • Added a unit test to validate FormTagHelper behaves as expected.
  • Moved Method == "get" checks into appropriate code paths. These include the one where a user specifies an empty or non-existent action attribute and where a user doesn't utilize any asp-* attributes. In the later, we default Method to "get" if it's not provided.

#6006

@dougbu had to do a few extra changes than the ones I showed you; therefore, here's the review 馃憤 .

- Added functional test to verify `asp-*` attributes on form taghelpers work as expected.
- Added a unit test to validate `FormTagHelper` behaves as expected.
- Moved `Method == "get"` checks into appropriate code paths. These include the one where a user specifies an empty or non-existent `action` attribute and where a user doesn't utilize any `asp-*` attributes. In the later, we default `Method` to `"get"` if it's not provided.

#6006
@NTaylorMullen
Copy link
Member Author

NTaylorMullen commented Apr 25, 2017

@dougbu signed off on this in person. Will merge once I verify things build successfully locally.

@NTaylorMullen NTaylorMullen merged commit f165914 into dev Apr 25, 2017
@NTaylorMullen NTaylorMullen deleted the nimullen/6006.p3 branch April 25, 2017 22:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants