Skip to content

Commit

Permalink
fix text input event propagation (#628)
Browse files Browse the repository at this point in the history
This will return Stop if the event has been handled by the text input
  • Loading branch information
jrmoulton authored Oct 20, 2024
1 parent f1eb90e commit fc25680
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,11 @@ impl View for TextInput {
self.last_cursor_action_on = Instant::now();
}

EventPropagation::Continue
if is_handled {
EventPropagation::Stop
} else {
EventPropagation::Continue
}
}

fn style_pass(&mut self, cx: &mut crate::context::StyleCx<'_>) {
Expand Down

0 comments on commit fc25680

Please sign in to comment.