Fix responsive, component, and lazy always returning an overlay
This commit is contained in:
parent
fca5d8038a
commit
d057b16153
3 changed files with 78 additions and 59 deletions
|
|
@ -320,7 +320,11 @@ where
|
|||
}
|
||||
.build();
|
||||
|
||||
Some(overlay::Element::new(Box::new(overlay)))
|
||||
if overlay.with_overlay(|(overlay, _layout)| overlay.is_some()) {
|
||||
Some(overlay::Element::new(Box::new(overlay)))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue