-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Date Range fields broken after 2.5.0 release #5955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting this, I'll have a look at this ASAP. |
Pinging @mirelon just in case you have any ideas. |
The problem is that #5867 calls input_html_options which uses |
…in DateRangeInput fixes activeadmin#5955
…in DateRangeInput fixes activeadmin#5955
…in DateRangeInput fixes activeadmin#5955
Expected behavior
Date Range fields broken after 2.5.0 release.
I believe that is related to #5867
If you configure:
Before 2.5.0 it creates the following html:
<div class="date_range input optional stringish filter_form_field filter_date_range" id="q_month_input"><label class="label">Mês</label> <input size="12" class="datepicker hasDatepicker" maxlength="10" placeholder="De" value="" type="text" name="q[month_gteq]" id="q_month_gteq"> <input size="12" class="datepicker hasDatepicker" maxlength="10" placeholder="Até" value="" type="text" name="q[month_lteq]" id="q_month_lteq"></div>
id="q_month_gteq"
id="q_month_lteq"
After 2.5.0:
<div class="date_range input optional stringish filter_form_field filter_date_range" id="q_month_input"><label for="q_month" class="label">Mês</label> <input class="datepicker hasDatepicker" value="" id="q_month" type="text" name="q[month_gteq]"> <input class="datepicker hasDatepicker" value="" id="q_month" type="text" name="q[month_lteq]"></div>
id="q_month"
id="q_month"
Actual behavior
The date picker does not work anymore because the IDs now are equal in both range fields.
And also it lost other html options like placeholder, maxlength.
All my date/datetime fields are broken like this example.
The text was updated successfully, but these errors were encountered: