jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Styling of default date in Calbox when input field is empty #240

Closed erikverheij closed 11 years ago

erikverheij commented 11 years ago

Hi there,

I'm using the defaultValue option while not having any text in the input field. This is because I use a different way of displaying the default/picked date to the end user. In this case I made use of the option hideInput:true.

When using the callbox like this the default date it not themed correctly in the callbox.

It is caused by:

if ( o.calHighPick && date === cal.presetDay && w.d.input.val()) {

in jqm-datebox.mode.calbox.js

I don't know if it really a bug, but it took me a long time to find out what was going wrong. A work arround would be to put some dummy text in the (hidden) inputfield.

Regards, Erik