I think there is an error in form.js.

This in it:

$formItem[this.defaultValue !== this.value ? 'addClass' : 'addClass']('has-error');
$input[this.defaultValue !== this.value ? 'addClass' : 'removeClass']('error');

Definitely the correct code is:

$formItem[this.defaultValue !== this.value ? 'removeClass' : 'addClass']('has-error');
$input[this.defaultValue !== this.value ? 'removeClass' : 'addClass']('error');

I tested it and checked in 7.x version, and 7.x has the corrected code.

Patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TommyChris created an issue. See original summary.

TommyChris’s picture

Issue summary: View changes
markhalliwell’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.