diff --git a/src/Masa.Blazor/Components/OtpInput/MOtpInput.razor b/src/Masa.Blazor/Components/OtpInput/MOtpInput.razor index 0e946daba4..ae41c0ecc5 100644 --- a/src/Masa.Blazor/Components/OtpInput/MOtpInput.razor +++ b/src/Masa.Blazor/Components/OtpInput/MOtpInput.razor @@ -7,7 +7,7 @@ id="@Id" @ref="Ref" @attributes="@Attributes"> - @for (var i = 0; i < @Length; i++) + @for (var i = 0; i < Length; i++) { var index = i; @GenItem(index)