Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
boostrap_has-error-class-not-disappear.patch | 703 bytes | TommyChris | |
Comments
Comment #2
TommyChrisComment #3
markhalliwell