From 2c5dbc3a9a4c4b688f5a5b77dcca14c50c6cc875 Mon Sep 17 00:00:00 2001 From: Edward Jazzhands Date: Sun, 13 Jul 2025 21:52:40 -0300 Subject: [PATCH 1/3] Added Input.Blurred to Input widget documentation --- docs/widgets/input.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/widgets/input.md b/docs/widgets/input.md index 1a7b8aa65f..5d221429f0 100644 --- a/docs/widgets/input.md +++ b/docs/widgets/input.md @@ -134,6 +134,7 @@ If you set `valid_empty=True` then empty values will bypass any validators, and - [Input.Changed][textual.widgets.Input.Changed] - [Input.Submitted][textual.widgets.Input.Submitted] +- [Input.Blurred][textual.widgets.Input.Blurred] ## Bindings From 2c5fd5af6b643c10bb9bbea2e089df69d0567f83 Mon Sep 17 00:00:00 2001 From: Edward Jazzhands Date: Sun, 13 Jul 2025 22:01:31 -0300 Subject: [PATCH 2/3] Also updated explanation in the "Validating Input" section --- docs/widgets/input.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/widgets/input.md b/docs/widgets/input.md index 5d221429f0..d97852b228 100644 --- a/docs/widgets/input.md +++ b/docs/widgets/input.md @@ -78,8 +78,7 @@ input = Input(validate_on=["submitted"]) Validation is considered to have failed if *any* of the validators fail. -You can check whether the validation succeeded or failed inside an [Input.Changed][textual.widgets.Input.Changed] or -[Input.Submitted][textual.widgets.Input.Submitted] handler by looking at the `validation_result` attribute on these events. +You can check whether the validation succeeded or failed inside an [Input.Changed][textual.widgets.Input.Changed], [Input.Submitted][textual.widgets.Input.Submitted], or [Input.Blurred][textual.widgets.Input.Blurred] handler by looking at the `validation_result` attribute on these events. In the example below, we show how to combine multiple validators and update the UI to tell the user why validation failed. From bd00e857889f7d10ba8be334d9810034ed74860e Mon Sep 17 00:00:00 2001 From: Edward Jazzhands Date: Thu, 17 Jul 2025 13:53:11 -0300 Subject: [PATCH 3/3] Changed message order to alphabetical --- docs/widgets/input.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/widgets/input.md b/docs/widgets/input.md index d97852b228..9bff171b5f 100644 --- a/docs/widgets/input.md +++ b/docs/widgets/input.md @@ -131,9 +131,9 @@ If you set `valid_empty=True` then empty values will bypass any validators, and ## Messages +- [Input.Blurred][textual.widgets.Input.Blurred] - [Input.Changed][textual.widgets.Input.Changed] - [Input.Submitted][textual.widgets.Input.Submitted] -- [Input.Blurred][textual.widgets.Input.Blurred] ## Bindings