From 693c98e8a638281ae99aa978c5e89c1aff7255d1 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Fri, 4 Mar 2022 11:06:29 +0800 Subject: [PATCH] Fix permission modal problem --- .../TagHelpers/Form/AbpInputTagHelperService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs index 3bc99436ca..bf370840a9 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Form/AbpInputTagHelperService.cs @@ -57,6 +57,8 @@ public class AbpInputTagHelperService : AbpTagHelperService output.Attributes.AddClass(isCheckBox ? "mb-2" : "mb-3"); if (isCheckBox) { + output.Attributes.AddClass("custom-checkbox"); + output.Attributes.AddClass("custom-control"); output.Attributes.AddClass("form-check"); } output.Content.AppendHtml(innerHtml); @@ -104,7 +106,7 @@ public class AbpInputTagHelperService : AbpTagHelperService protected virtual string SurroundInnerHtmlAndGet(TagHelperContext context, TagHelperOutput output, string innerHtml, bool isCheckbox) { - return "
" + + return "
" + Environment.NewLine + innerHtml + Environment.NewLine + "
"; }