diff --git a/src/widget/button/widget.rs b/src/widget/button/widget.rs index aa8f0c32..da8612f7 100644 --- a/src/widget/button/widget.rs +++ b/src/widget/button/widget.rs @@ -437,7 +437,11 @@ impl<'a, Message: 'a + Clone> Widget if !viewport.intersects(&bounds) { return; } - let content_layout = layout.children().next().unwrap(); + + // FIXME: Why is there no content layout + let Some(content_layout) = layout.children().next() else { + return; + }; let mut headerbar_alpha = None;