diff --git a/crates/egui/src/theme/mod.rs b/crates/egui/src/theme/mod.rs index 062fbbcb4..7a14c355c 100644 --- a/crates/egui/src/theme/mod.rs +++ b/crates/egui/src/theme/mod.rs @@ -32,9 +32,8 @@ impl Ui { response.widget_state() } else { // We don't know the state of the widget yet, so we would style it wrong. - // Discard this pass and style it correctly in the next one. - self.ctx() - .request_discard("Widget style depends on a widget response we don't have yet"); + // It will be styled correctly on next frame. + self.ctx().request_repaint(); WidgetState::default() };