mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update docs/examples/events/prevent.py
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,7 @@ class PreventApp(App):
|
||||
def on_button_pressed(self) -> None:
|
||||
"""Clear the text input."""
|
||||
input = self.query_one(Input)
|
||||
with input.prevent(Input.Changed): # (1)
|
||||
with input.prevent(Input.Changed): # (1)!
|
||||
input.value = ""
|
||||
|
||||
def on_input_changed(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user