diff --git a/src/BootstrapBlazor/Utils/Utility.cs b/src/BootstrapBlazor/Utils/Utility.cs index 3ae7dca433f7fab0e660f938476cbbcc3a858a41..56dd04b2ff595ac48a07a70e190a7f98c8acc178 100644 --- a/src/BootstrapBlazor/Utils/Utility.cs +++ b/src/BootstrapBlazor/Utils/Utility.cs @@ -283,6 +283,10 @@ public static class Utility builder.AddAttribute(2, nameof(Textarea.Value), fieldValue); builder.AddAttribute(3, nameof(Textarea.ShowLabelTooltip), item.ShowLabelTooltip); builder.AddAttribute(4, "readonly", true); + if (item.Rows > 0) + { + builder.AddAttribute(5, "rows", item.Rows); + } builder.CloseComponent(); } else