Commit 9c28e725b98 for woocommerce

commit 9c28e725b98c493bed3948c85657491217c0b6ab
Author: Thomas Roberts <5656702+opr@users.noreply.github.com>
Date:   Wed Apr 8 11:45:28 2026 -0400

    Fix account password field showing error on display (#64064)

    * Fix account password field showing error on display

    Remove `.trigger('change')` from `toggle_create_account` in checkout.js.
    The change event was causing `validate_field` to run immediately on the
    empty password field, marking it invalid before the user interacted with it.
    The `.val('')` alone is sufficient to clear any pre-populated password.

    Closes woocommerce/woocommerce#63787

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    * Add changefile(s) from automation for the following project(s): woocommerce

    * Remove duplicate changelog entry

    CI auto-created a changelog entry; removing the manual one.

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    ---------

    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>

diff --git a/plugins/woocommerce/changelog/64064-opr-fix-password-error-display b/plugins/woocommerce/changelog/64064-opr-fix-password-error-display
new file mode 100644
index 00000000000..897d61e7362
--- /dev/null
+++ b/plugins/woocommerce/changelog/64064-opr-fix-password-error-display
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix account password field showing validation error immediately when "Create an account" checkbox is checked on checkout.
\ No newline at end of file
diff --git a/plugins/woocommerce/client/legacy/js/frontend/checkout.js b/plugins/woocommerce/client/legacy/js/frontend/checkout.js
index 65e5a0bd62c..4fdbe0b393e 100644
--- a/plugins/woocommerce/client/legacy/js/frontend/checkout.js
+++ b/plugins/woocommerce/client/legacy/js/frontend/checkout.js
@@ -320,7 +320,7 @@ jQuery( function ( $ ) {

 			if ( $( this ).is( ':checked' ) ) {
 				// Ensure password is not pre-populated.
-				$( '#account_password' ).val( '' ).trigger( 'change' );
+				$( '#account_password' ).val( '' );
 				$( 'div.create-account' ).slideDown();
 			}
 		},