fix(module: select): When the Select component is in multiple selection mode, it throws an exception: “Value cannot be null.” #4708 (#4709)

This commit is contained in:
shuangbaojun
2025-10-29 21:51:23 +08:00
committed by GitHub
parent a128a18b22
commit 803a4e85ae

View File

@@ -361,7 +361,7 @@ namespace AntDesign
}
}
if (_isNotifyFieldChanged && Form?.ValidateOnChange == true)
if (_isNotifyFieldChanged && Form?.ValidateOnChange == true && FieldIdentifier is { Model: not null, FieldName: not null })
{
EditContext?.NotifyFieldChanged(FieldIdentifier);
}