public override void Init(TagHelperContext context) { base.Init(context); FormContext = context.HasFormContext() ? context.GetFormContext() : new FormTagHelper(); context.SetFormContext(new FormTagHelper { ControlSize = ControlSize ?? FormContext.ControlSize, Output = FormContext.Output, Inline = FormContext.Inline, Horizontal = FormContext.Horizontal, LabelWidthXs = FormContext.LabelWidthXs, LabelWidthLg = LabelWidthLg ?? FormContext.LabelWidthLg, LabelWidthMd = LabelWidthMd ?? FormContext.LabelWidthMd, LabelWidthSm = LabelWidthSm ?? FormContext.LabelWidthSm, LabelsSrOnly = FormContext.LabelsSrOnly }); context.SetFormGroupContext(this); Size = Size ?? FormContext.FormGroupSize; }