public override void Init(TagHelperContext context) { base.Init(context); FormContext = context.GetFormContext(); FormGroupContext = context.GetFormGroupContext(); InputGroupContext = context.GetInputGroupContext(); IsInLabel = context.HasLabelContext(); Size = Size ?? FormContext?.ControlSize; if (FormGroupContext != null) FormGroupContext.HasLabel = FormGroupContext.HasLabel || !string.IsNullOrEmpty(Label); }