diff --git a/docs/examples/events/prevent.py b/docs/examples/events/prevent.py index 66ffb034c..e8fd0de05 100644 --- a/docs/examples/events/prevent.py +++ b/docs/examples/events/prevent.py @@ -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: