bootstrap-datepicker icon indicating copy to clipboard operation
bootstrap-datepicker copied to clipboard

[BS4] problems with component input

Open HallofFamer opened this issue 11 years ago • 10 comments

Well my site is being developed with bootstrap 4, I want to use the date picker but it doesnt work at all. I just include these files:

<link rel="stylesheet"  type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.min.css"/>
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.min.js">
<script type='text/javascript'>
$('.datepicker').datepicker()
</script>    

And the HTML I used was just copied/pasted from the documentation(the one with component/group):

<div class="input-group date">
    <input type="text" class="form-control datepicker" value="12-02-2012">
    <div class="input-group-addon">
        <i class="fa fa-calendar"></i>
    </div>
</div>

The only difference is that I replaced the span tag for glyphicon by fontawesome, other than this I dont see anything else that can cause the trouble. Is the issue caused by the removal of glyphicon? If so, when will you make this compatible with Bootstrap 4 which doesnt have glyphicon? Or am I doing something wrong myself?

HallofFamer avatar Nov 12 '15 19:11 HallofFamer

@HallofFamer bootstrap 4 is still in alpha and we currently don't have support for it. But should come we it reaches it final release!

acrobat avatar Nov 12 '15 20:11 acrobat

Oh so you dont support bootstrap 4? But I need it right now.

HallofFamer avatar Nov 12 '15 21:11 HallofFamer

read @acrobat's comment. We don't support it at the moment, as it is still an early alpha.

i would not use any alpha for a project

hebbet avatar Nov 12 '15 22:11 hebbet

read my comment. If you dont support it yet, then add the support now.

HallofFamer avatar Nov 13 '15 12:11 HallofFamer

Read my comment. You're being demanding and rude.

MrGeneric avatar Nov 13 '15 12:11 MrGeneric

To see the evolution of the BS 4 support follow this issue : https://github.com/eternicode/bootstrap-datepicker/issues/1670

Johann-S avatar Nov 13 '15 12:11 Johann-S

then add the support now.

we maintain that proiect in our spare time. i don't think is useful to make changes for the current BS4 alpha, as they might change stuff during the development. as noted in #1670 we will add support during beta. until then BS4 is not supported by us.

if someone makes a PR, we might merge it.

hebbet avatar Nov 13 '15 16:11 hebbet

at least none normal input is working. Just tested with my BS4 playground.

with BS2 like css of datepicker image

with BS3 like css of datepicker image

i will change at least the title for clarification

hebbet avatar Nov 13 '15 17:11 hebbet

Hi I also use BS4 alpha.2 and in fact for now i really see only one problem with the placement of the calendar : always to high (and seems constant) .... so it seems that the calcul of the top property not work for BS 4 ... Is it right ? I think this problem can be fixed easily ... in a first time by an hard hack on the top property... I would like to fix this but not much time ... but i will try ... any help to start will be welcome ...

Thanks

And @ developpers thanks for this good pluggin !

jipexu avatar Apr 19 '16 11:04 jipexu

BS4 support is tracked at #1670

I will start updating as soon as an beta is available.

hebbet avatar Apr 19 '16 20:04 hebbet