diff --git a/crates/bevy_ui/src/focus.rs b/crates/bevy_ui/src/focus.rs index 2ca02f46ac0542..fab9a0121c1a71 100644 --- a/crates/bevy_ui/src/focus.rs +++ b/crates/bevy_ui/src/focus.rs @@ -164,9 +164,7 @@ pub fn ui_focus_system( // Reset their interaction to None to avoid strange stuck state if let Some(mut interaction) = node.interaction { // We cannot simply set the interaction to None, as that will trigger change detection repeatedly - if *interaction != Interaction::None { - *interaction = Interaction::None; - } + interaction.set_if_neq(Interaction::None); } return None;