You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'}) %}
@shakaran The fix it's not working because my original copy has an error.
data-datepicker cant be used.
The fix its to use: {% set attr = attr|merge({'class' : class, 'data-datepickerenable':'on'}) %}
data-datepickerenable without spaces. It can be "data-datepicker_enable" or anything but "data-datepicker" because that's used by the javascript plugin.
Activity
<bugfix> Enable datepicker in new bootstrap version. Issue #188
shakaran commentedon Oct 16, 2017
@glerendegui I push a fix now following your comment, please test latest master and let me know if work fine for you, thanks!
glerendegui commentedon Oct 20, 2017
@shakaran The fix it's not working because my original copy has an error.
data-datepicker cant be used.
The fix its to use:
{% set attr = attr|merge({'class' : class, 'data-datepickerenable':'on'}) %}data-datepickerenable without spaces. It can be "data-datepicker_enable" or anything but "data-datepicker" because that's used by the javascript plugin.
<bugfix> Remove space for datepicker class. Issue #188
shakaran commentedon Oct 27, 2017
@glerendegui pushed the change, let me know if the fix works for you
shakaran commentedon Nov 2, 2017
@glerendegui ping again, please let me know the status so I can close this issue, thanks!
glerendegui commentedon Nov 16, 2017
I can confirm that it's fixed. I'm sorry for the delay.
shakaran commentedon Nov 16, 2017
@glerendegui Thanks a lot ;) Closing the issue