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

Input values not showing

Open sinrise opened this issue 10 years ago • 6 comments

Everything else seems to be functional. I can use the arrows to step through digits or enter the time on the keyboard but the actual value doesn't show on the inputs. It doesn't seem to be the CSS because on inspection the 'color: ' is set to black. There is no text to select, so it's not a color thing. I think the characters aren't being appended to the input element...

sinrise avatar Sep 26 '14 21:09 sinrise

I'm having the same issue. Have you, by any chance, figured out the solution? Thanks.

ksidibe avatar Feb 03 '15 11:02 ksidibe

Same issue here, anyone figured this out?

t0mj avatar Jun 23 '15 17:06 t0mj

@ksidibe @t0mj @sinrise Please provide HTML and init code. Are you using the latest release (v0.5.1)?

mrhota avatar Aug 30 '15 23:08 mrhota

I am using v0.5.1 and I get the same problem

HTML

<div class="bootstrap-timepicker timepicker">
    <input type="text" id="timepicker1" class="form-control input-small" required="required" placeholder="Event Start Time">
</div>

JS

$('#timepicker1, #timepicker2').timepicker({
    defaultTime:    false,
    showMeridian:   false,
});

Any idea what's going wrong?

adam-godfrey avatar Oct 29 '15 13:10 adam-godfrey

Try width: 50px; https://github.com/jdewit/bootstrap-timepicker/blob/gh-pages/less/timepicker.less#L145

I believe thats what fixed my problem but I am on an older version.

t0mj avatar Oct 29 '15 13:10 t0mj

Thanks @t0mj

By changing the width like you suggested and overriding some padding fixed the problem

.bootstrap-timepicker-widget table td input {
    width: 50px;
    margin: 0;
    text-align: center;
    padding: 0 5px;
}

adam-godfrey avatar Oct 29 '15 14:10 adam-godfrey