From 9badd9b286c980c7f3effd4a8116a5599535db43 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Sun, 4 Oct 2026 19:50:53 -0400 Subject: [PATCH] add: autocorrect and autocapitalize to Email Input --- src/Forms/EmailInput.php | 2 ++ tests/Forms/EmailInputTest.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Forms/EmailInput.php b/src/Forms/EmailInput.php index 058df56..9fde9d3 100644 --- a/src/Forms/EmailInput.php +++ b/src/Forms/EmailInput.php @@ -83,6 +83,8 @@ public function __toString(): string 'id ' . $this->name, 'name ' . $this->name, 'value ' . $this->value, + 'autocorrect off', + 'autocapitalize off', ...$this->inputProperties ); diff --git a/tests/Forms/EmailInputTest.php b/tests/Forms/EmailInputTest.php index d524ee5..b11cb40 100644 --- a/tests/Forms/EmailInputTest.php +++ b/tests/Forms/EmailInputTest.php @@ -14,7 +14,7 @@ class EmailInputTest extends TestCase public function can_set_value(): void // phpcs:ignore { $expected = <<Email + html; $result = (string) EmailInput::create( @@ -30,7 +30,7 @@ public function can_set_value(): void // phpcs:ignore public function can_set_warning_message(): void // phpcs:ignore { $expected = <<Email

Invalid value

+

Invalid value

html; $result = (string) EmailInput::create( @@ -46,7 +46,7 @@ public function can_set_warning_message(): void // phpcs:ignore public function is_expected_base(): void // phpcs:ignore { $expected = <<Email + html; $result = (string) EmailInput::create(