FIX: fix the dissmiss of Combobox

jira: [STUDIO-12226]
Change-Id: Ibecd15608acf0d1118fe5e1b27c8b2aec756c48b
This commit is contained in:
xin.zhang 2025-05-15 20:03:55 +08:00 committed by lane.wei
parent 787ecce355
commit bab463f1f5

View File

@ -755,7 +755,9 @@ void DropDown::Dismiss()
void DropDown::OnDismiss()
{
if (mainDropDown) {
if (mainDropDown->hover_item < 0)
const wxPoint& mouse_pos = wxGetMousePosition();
if (!mainDropDown->GetScreenRect().Contains(mouse_pos))
mainDropDown->DismissAndNotify();
else
#ifdef __WIN32__