Fix the inline help being invisible with addons #68

Merged
merged 1 commit into from Mar 18, 2013

Conversation

Projects
None yet
2 participants

when using the :add_on => :prepend option, the help-inline becomes invisible.

the following code will reproduce the issue when submitting the following form with an invalid value:

= twitter_bootstrap_form_for(@user, :html => { :class => "form-horizontal" }) do |user|
    = user.text_field :twitter_id, :add_on => :prepend do
      %span.add-on @

this is because the help-inline span wants to be at the same level as the input-prepend div, but it is within it. Attached code puts it in the correct place.

stouset merged commit 263774b into stouset:bootstrap-2.0 Mar 18, 2013

hdgarrood deleted the hdgarrood:fix-error-spans-with-add-ons branch Mar 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment