huwred
03/02/2023, 8:16 AMD_Inventor
03/02/2023, 8:28 AMhuwred
03/02/2023, 11:13 AMoutput.Attributes.Remove(existingAttribute);
into
if (existingAttribute != null)
{
output.Attributes.Remove(existingAttribute);
}
If the element has a style and no existing class it errors 😄D_Inventor
03/02/2023, 12:09 PMD_Inventor
03/02/2023, 12:11 PMhuwred
03/02/2023, 12:38 PMD_Inventor
03/02/2023, 12:43 PMD_Inventor
03/02/2023, 12:44 PMhuwred
03/17/2023, 10:10 AMhuwred
03/17/2023, 10:30 AMif (_httpContextAccessor.HttpContext.Request.IsBackOfficeRequest())
{
output.Attributes.Add(new TagHelperAttribute("style", new HtmlString(Style)));
return;
}
D_Inventor
03/17/2023, 10:40 AMhuwred
03/17/2023, 10:44 AM