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

Tag Helpers: enum attribute of nested enum type #1058

Closed
johnendev opened this issue Mar 7, 2017 · 3 comments
Closed

Tag Helpers: enum attribute of nested enum type #1058

johnendev opened this issue Mar 7, 2017 · 3 comments
Assignees

Comments

@johnendev
Copy link

#196 allows writing only the enum member as the attribute value.
When using a tag helper property with a nested enum type the generated code is invalid.

class Parent {
  public enum Foo {
    Bar,
  }
}
<mytaghelper someattr="Bar" />

The generated code is like this:

__MyTagHelper.SomeAttr = global::SomeNamespace.Parent+Child.Bar;

Microsoft.AspNetCore.Mvc.Razor v1.1.1

@Eilon
Copy link
Member

Eilon commented Mar 14, 2017

@ajaybhargavb we think this might already be fixed. Either way, please make sure there's a test for this case.

@Eilon
Copy link
Member

Eilon commented May 5, 2017

3-Done?

@ajaybhargavb
Copy link
Contributor

Oops 😄

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

4 participants