-
Notifications
You must be signed in to change notification settings - Fork 2.1k
TagHelpers attribute targeting - part 1 #2211
Conversation
// IHtmlGenerator will enforce name requirements. | ||
var metadata = For.Metadata; | ||
var modelExplorer = For.ModelExplorer; | ||
if (metadata == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be more changes going on here than just the attribute targeting, whatsis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was previous code, the diff is just misleading. Since we require the asp-for
attribute to be provided there was no longer a need to check if it was provided.
solid, |
c09791b
to
6624088
Compare
|
/// attribute. | ||
/// </summary> | ||
[TargetElement("span")] | ||
[TargetElement(Attributes = ValidationForAttributeName)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change in behaviour should be separate. discuss w/ @DamianEdwards as to whether we need to make this change.
⌚ doesn't look ready |
6624088
to
525c1cf
Compare
Created a follow up issue #2220 |
525c1cf
to
bfdeda7
Compare
Issue #2195
@NTaylorMullen @dougbu