diff --git a/examples/html_examples/src/main.rs b/examples/html_examples/src/main.rs
index 92d7cdb..54cd925 100644
--- a/examples/html_examples/src/main.rs
+++ b/examples/html_examples/src/main.rs
@@ -661,6 +661,16 @@ mod tests {
)
}
+ #[test]
+ fn inline_validation_form_uses_input_event_for_revalidation() {
+ let state = Arc::new(GalleryState::seeded());
+ let html = gallery_view(&state).render().expect("render gallery");
+ assert!(
+ html.contains("data-hemx-on=\"input\""),
+ "inline validation form must listen on input events"
+ );
+ }
+
#[test]
fn readme_maps_every_htmx_example_slug() {
let readme = include_str!("../README.md");
diff --git a/examples/html_examples/templates/gallery.heml b/examples/html_examples/templates/gallery.heml
index 677cc02..91fa57c 100644
--- a/examples/html_examples/templates/gallery.heml
+++ b/examples/html_examples/templates/gallery.heml
@@ -31,7 +31,7 @@