input: Fix Input escape to propagate to parent element. (#806)

Fix #803 changes broke Escape to dismiss dropdown menu.
This commit is contained in:
Jason Lee 2025-04-22 18:40:27 +08:00 committed by GitHub
parent f7be6a245a
commit 39da30815a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1079,8 +1079,10 @@ impl TextInput {
} }
if self.clean_on_escape { if self.clean_on_escape {
self.clean(window, cx); return self.clean(window, cx);
} }
cx.propagate();
} }
fn on_mouse_down( fn on_mouse_down(