-
Notifications
You must be signed in to change notification settings - Fork 149
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
datepicker not working #188
Comments
@glerendegui I push a fix now following your comment, please test latest master and let me know if work fine for you, thanks! |
@shakaran The fix it's not working because my original copy has an error. data-datepickerenable without spaces. It can be "data-datepicker_enable" or anything but "data-datepicker" because that's used by the javascript plugin. |
@glerendegui pushed the change, let me know if the fix works for you |
@glerendegui ping again, please let me know the status so I can close this issue, thanks! |
I can confirm that it's fixed. I'm sorry for the delay. |
@glerendegui Thanks a lot ;) Closing the issue |
Date form fields are not working. The datepicker are not showed.
I have a template like Default/form.html.twig with
but nothing happens. When I have looked inside bootstrap-datepicker.js I have found that data-dapicker is something used inside the library, so, after change my code to:
$('[data-datepickerenable="on"]').datepicker({autoclose: true});
and after change form-theme.html.twig, block date_widget for
{% set attr = attr|merge({'class' : class, 'data-datepicker enable':'on'}) %}
it started working.
Debug info
The text was updated successfully, but these errors were encountered: