-
Notifications
You must be signed in to change notification settings - Fork 1k
defaultValue when focus #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'll confirm this. Even with defaultValue set to null (default), clicking on a textbox with a timepicker will set it to midnight. I've tracked this down to line 500-504 (of the current version): if (this.inst !== null) {
var timeDefined = this.timeDefined;
this._onTimeChange();
this.timeDefined = timeDefined;
} I commented out the this._onTimeChange(); and it stopped it from happening. Is there any way we can make the 'close' (Done) button set the textbox to what is selected? |
Commenting out that line breaks manually changing the text, though :( |
im temporarily using this form to avoid the default value:
|
notice that, if there's no 'z' (Timezone) in timeFormat, it won't provide a timezone drop list, so it looks just fine |
I think fixed in #648 |
I don't want the default value of 'date + " 00:00"', placed in when focused, and defaultValue option didn't work.
$(...).datetimepicker( {
defaultValue: "" // null didn't work either...
})
The text was updated successfully, but these errors were encountered: