Skip to content

Commit 915361f

Browse files
committed
refactor: 增加 ValidateForm 判断条件
1 parent b331fc3 commit 915361f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Validate/ValidateBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ private string GetDefaultRequiredErrorMessage()
371371
/// <summary>
372372
/// 获得/设置 是否不进行验证 默认为 false
373373
/// </summary>
374-
public bool IsNeedValidate => !IsDisabled && !SkipValidate;
374+
public bool IsNeedValidate => ValidateForm != null && !IsDisabled && !SkipValidate;
375375

376376
/// <summary>
377377
/// <inheritdoc/>

0 commit comments

Comments
 (0)