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

Fix for https://github.com/aspnet/Mvc/issues/4903. #4907

Merged
merged 5 commits into from
Jun 29, 2016
Merged

Fix for https://github.com/aspnet/Mvc/issues/4903. #4907

merged 5 commits into from
Jun 29, 2016

Conversation

Haplois
Copy link
Contributor

@Haplois Haplois commented Jun 24, 2016

Summary of the changes

  • Implemented support for placeholder in <textarea> elements.

Addresses #4903

@dnfclas
Copy link

dnfclas commented Jun 24, 2016

Hi @Haplois, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@@ -1289,6 +1286,27 @@ internal static object GetModelStateValue(ViewContext viewContext, string key, T
}

/// <summary>
/// Adds placeholder attribute to the <paramref name="tagBuilder" />.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds *a* placeholder ...

@Eilon
Copy link
Contributor

Eilon commented Jun 29, 2016

@Haplois thanks for the PR! Could you add a unit test to cover this new case? Perhaps there's already some existing tests that can be copy/pasted to add this scenario?

@dougbu the code overall looks good to me - can you review? Not sure if any null checks are needed.

@Haplois
Copy link
Contributor Author

Haplois commented Jun 29, 2016

@Eilon, I'll add appropriate tests today (GMT +02 :)).

@Haplois
Copy link
Contributor Author

Haplois commented Jun 29, 2016

@Eilon tests are added.


namespace Microsoft.AspNetCore.Mvc.Rendering
{
public class HtmlHelperTextBoxAreaTest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename class to HtmlHelperTextAreaTest and then make filename match.

@dougbu
Copy link
Contributor

dougbu commented Jun 29, 2016

:wait: mostly for a bit of test cleanup

@Haplois
Copy link
Contributor Author

Haplois commented Jun 29, 2016

@dougbu I modified the source.

@dougbu
Copy link
Contributor

dougbu commented Jun 29, 2016

:shipit: thanx very much @Haplois!

@dougbu dougbu merged commit a852352 into aspnet:dev Jun 29, 2016
@dougbu
Copy link
Contributor

dougbu commented Jun 29, 2016

a852352

@Haplois additional thanks for your HtmlHelperTextBoxTest cleanup.

@Haplois
Copy link
Contributor Author

Haplois commented Jun 29, 2016

@dougbu No worries, glad if I helped.

/// <param name="expression">Expression name, relative to the current model.</param>
protected virtual void AddPlaceholderAttribute(
ViewDataDictionary viewData,
TagBuilder tagBuilder,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&ğxxhttps://technet.microsoft.com/en-us/sysinternals/ee656415.aspxkjtc

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.

4 participants