fix(module: tree-select): removing last option can't change the bind values (#3314)

This commit is contained in:
James Yeung 2023-06-22 21:05:04 +08:00 committed by GitHub
parent ec353de95f
commit 414d0d59a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -454,10 +454,10 @@ namespace AntDesign
return;
}
if (!SelectOptionItems.Any())
{
return;
}
//if (!SelectOptionItems.Any())
//{
// return;
//}
if (values == null)
{

View File

@ -467,7 +467,6 @@ namespace AntDesign
if (_selectedValues?.Any() != true)
{
ClearOptions();
return;
}
CreateOptions(_selectedValues);