Close popups when receiving mouse events outside the frame

pull/10126/head
Gokul Soumya 8 months ago
parent 9cc0f82e62
commit d05cc25794

@ -198,7 +198,7 @@ impl<T: Component> Popup<T> {
&& y < self.area.bottom(); && y < self.area.bottom();
if !mouse_is_within_popup { if !mouse_is_within_popup {
return EventResult::Ignored(None); return EventResult::Ignored(Some(self.close_cb()));
} }
match kind { match kind {

Loading…
Cancel
Save