fix(dropdown): overlay should show unless a popup is configured
This commit is contained in:
parent
8398944886
commit
1388434215
1 changed files with 3 additions and 1 deletions
|
|
@ -296,7 +296,9 @@ where
|
||||||
translation: Vector,
|
translation: Vector,
|
||||||
) -> Option<overlay::Element<'b, Message, crate::Theme, crate::Renderer>> {
|
) -> Option<overlay::Element<'b, Message, crate::Theme, crate::Renderer>> {
|
||||||
#[cfg(feature = "wayland")]
|
#[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>();
|
let state = tree.state.downcast_mut::<State>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue