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
{{ message }}
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
Today in a TagHelpers Process method you're unable to copy values from TagHelperContext.AllAttributes => TagHelperOutput effectively. Aka this results in an error:
Because context.AllAttributes[0] is an IReadonlyTagHelperAttribute and output.Attributes.Insert only takes TagHelperAttributes (as expected). To make this work you need to re-create the TagHelperAttribute via`
It'd be nice to make this slightly easier by providing a semi-copy ctor for TagHelperAttribute so it can take in an IReadonlyTagHelperAttribute and construct itself accordingly. Would let us do: