* UICombobox: 修复一个设置Text,SelectedValue不变的问题

This commit is contained in:
Sunny 2024-01-05 21:59:03 +08:00
parent 2f5b07c87b
commit 989645ec97

View File

@ -377,7 +377,6 @@ namespace Sunny.UI
private void Edit_TextChanged(object sender, EventArgs e)
{
TextChanged?.Invoke(this, e);
if (DropDownStyle == UIDropDownStyle.DropDownList) return;
if (!ShowFilter)
{
@ -396,6 +395,7 @@ namespace Sunny.UI
}
else
{
if (DropDownStyle == UIDropDownStyle.DropDownList) return;
if (edit.Focused && Text.IsValid())
{
ShowDropDownFilter();