[macOS] Select element doesn't show popup if select element had lost focus while...
[WebKit-https.git] / Source / WebKitLegacy / mac / WebCoreSupport / PopupMenuMac.mm
index 7366c73..bb84101 100644 (file)
@@ -234,9 +234,11 @@ void PopupMenuMac::show(const IntRect& r, FrameView* v, int index)
 
 void PopupMenuMac::hide()
 {
-    [m_popup dismissPopUp];
+    [[m_popup menu] cancelTracking];
+    if (m_client)
+        m_client->popupDidHide();
 }
-    
+
 void PopupMenuMac::updateFromElement()
 {
 }