Closed (fixed)
Project:
Bootstrap
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2013 at 18:21 UTC
Updated:
30 Jul 2014 at 06:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
el7cosmosComment #2
bago commentedbut has-error should be added at input tag level, not on the wrapper level.
Comment #3
el7cosmosComment #4
bago commentedYou are right! Sorry!
I also noticed that bootstrap_form_element function ignores #attributes received in input and creates a new $attributes method so there is no way to use THEME_preprocess_form_element in order to add custom classes to the wrapper element.
Maybe adding this line at the top of the method could help:
Comment #5
markhalliwellThanks @el7cosmos!
Committed 54d692c to 7.x-3.x:
Comment #6
markhalliwellComment #9
markhalliwellI'm just moving this back to 7.x. If this needs re-evaluation in 8.x, create a new issue.