Open ghost opened 6 years ago
I have tried this with v1.7.1 with the same results.
The BS4 class names changed from input-group-addon to input-group-append and input-group-prepend. The secondary class was added named "input-group-text".
So until the JS and CSS are updated, users running BS 4.0.0+ won't be able to use this plugin.
As a workaround, I did the following, simply just put use the input-group-addon
class even though it doesn't affect anything:
<div class="input-group date datepicker" data-provide="datepicker">
<div class="input-group-prepend input-group-addon">
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
</div>
<input id="booking-date" type="text" name="booking-date" class="form-control">
</div>
Expected behaviour
Click on the input group calendar addon or input field and be able to select a date
Actual behaviour
Nothing happens BS4.0.0 stable release has changed input-group class names. JS and CSS must be updated in order for it to work.
Datepicker version used
Datepicker for Bootstrap v1.7.0-RC3 (https://github.com/uxsolutions/bootstrap-datepicker)
Example code
Update to BS4.0.0. try running the datepicker as setup previously.