From ebaa60bc113dea73de218f56e3f9e5de5392217e Mon Sep 17 00:00:00 2001 From: "Aaron (Qilong)" <173288704@qq.com> Date: Thu, 14 Dec 2023 22:52:21 +0800 Subject: [PATCH] Revert "Update Dropdown node population method (#14687)" (#14758) This reverts commit 3dbe2e1ac0a78aca994ac6d6fdf165296272e834. --- src/Libraries/CoreNodeModels/DropDown.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Libraries/CoreNodeModels/DropDown.cs b/src/Libraries/CoreNodeModels/DropDown.cs index 50586afaec0..71ec3ce9758 100644 --- a/src/Libraries/CoreNodeModels/DropDown.cs +++ b/src/Libraries/CoreNodeModels/DropDown.cs @@ -303,6 +303,7 @@ public void PopulateItems() // Restore the selection when selectedIndex is valid if (selectionState == SelectionState.Restore && !string.IsNullOrEmpty(currentSelection)) { + SelectedIndex = -1; for (int i = 0; i < items.Count; i++) { if (GetSelectedStringFromItem(items.ElementAt(i)).Equals(currentSelection))