Ticket #6935 (closed bug: duplicate)
Datepicker create event not being executed like other events.
| Reported by: | delwyn | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.0 |
| Component: | ui.datepicker | Version: | 1.8.9 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hi
The Datepicker does not seem to execute the create event as specified in the demo: $( ".selector" ).datepicker({
create: function(event, ui) { ... }
});
It works with all other events listed there.
Thanks
Change History
comment:2 in reply to: ↑ 1 Changed 2 years ago by scott.gonzalez
- Status changed from new to open
Replying to suner:
I think I see the same issue using jQuery 1.4.4 and jQueryUI 1.7.3.
The create event didn't exist in any widget in 1.7.3.
comment:3 Changed 2 years ago by atistler
Nope, I see this exact same behavior as well. Using jquery 1.5.1 and jquery-ui 1.8.10.
comment:4 Changed 2 years ago by atistler
This is easy to reproduce:
1) Go to http://jqueryui.com/demos/datepicker/ 2) enter the following into firebug:
$('#datepicker').datepicker("destroy");
$('#datepicker').datepicker({
create: function(a,b) {
console.log("create");
}, onSelect: function(a,b) {
console.log("onSelect");
}, onClose: function(a,b) {
console.log("onClose");
}
});
"create" never gets logged.
comment:5 Changed 18 months ago by JGarrido
I'm experiencing the same issue; here I was able to reproduce it using jQuery 1.7.1 and jQueryUI 1.8.16: http://jsfiddle.net/jgarrido/u5rfc/
comment:6 Changed 15 months ago by strikernl
Still existing in 1.8.18. Why on earth is this not fixed yet? Either fix it or remove it from documentation!


I think I see the same issue using jQuery 1.4.4 and jQueryUI 1.7.3.