fix(dropdown): overlay should show unless a popup is configured

This commit is contained in:
Ashley Wulber 2025-03-03 17:12:36 -05:00
parent 8398944886
commit 1388434215
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -296,7 +296,9 @@ where
translation: Vector,
) -> Option<overlay::Element<'b, Message, crate::Theme, crate::Renderer>> {
#[cfg(feature = "wayland")]
return None;
if self.on_open.is_some() || self.window_id.is_some() || self.on_close_popup.is_some() {
return None;
}
let state = tree.state.downcast_mut::<State>();