From ac5596165a4fb2cc25a69b0ddcc6e1148b4faac4 Mon Sep 17 00:00:00 2001
From: Linus Rath <139418639+rathlinus@users.noreply.github.com>
Date: Wed, 28 Oct 2026 13:05:43 +0100
Subject: [PATCH] fix: show only the app's own message for a wrong address in
the contact form, without the browser bubble over it
---
.../contacts/__tests__/contact-form.test.tsx | 16 ++++++++++++++++
components/contacts/contact-form.tsx | 4 +++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/components/contacts/__tests__/contact-form.test.tsx b/components/contacts/__tests__/contact-form.test.tsx
index e6c6570a0..ef207dbdc 100644
--- a/components/contacts/__tests__/contact-form.test.tsx
+++ b/components/contacts/__tests__/contact-form.test.tsx
@@ -50,6 +50,22 @@ describe('ContactForm', () => {
expect(onSave).not.toHaveBeenCalled();
});
+ // The browser's own "Please include an '@'" bubble sat over the app's
+ // inline message: the form leaves checking to the app.
+ it('says an address is wrong itself, with no browser bubble in the way', async () => {
+ const onSave = vi.fn();
+ render(