bcardarella/client_side_validations — Issue #278: Error labeling fails on previously disabled select
Author: sfire38
Created: 2012-02-17 18:00:08+00:00
State: open

On a form that has a disabled select, after trying to save (with it disabled) and then re-enabling the select, the error label does not appear after trying to save again.

Scenario:

I have a form with a State and City select. Both are required. On first load, the State is populated but the City is disabled and empty. Once the State is selected, the City is populated via ajax and enabled. If the form is saved but no State is selected, the State is wrapped with the field_with_errors span, but the city is not (because it is disabled). If the State is then selected and the City becomes active (but not selected) and the form is saved, it properly validates that City is required, but no field_with_errors spans are wrapped around it.