mymth / vanillajs-datepicker

A vanilla JavaScript remake of bootstrap-datepicker for Bulma and other CSS frameworks
MIT License
759 stars 155 forks source link

No onhide event #154

Open ionultd opened 1 year ago

ionultd commented 1 year ago

Firstly thx very much for this cool datepicker. However I see no event to target when clicking outside the datepicker like an onhide event.

When the datepicker hides it automatically appears to populate the input field with the date but I need to add a time to that on hiding the datepicker.

Is this possible?

Thanks

mymth commented 1 year ago

Sorry, but I'm a bit unclear. Does that mean the "hide" event is not working as expected?

ionultd commented 1 year ago

THanks for getting back to me. What I meant is that i see no hide event to act on. i.e: $('.datepicker_input').on('hide', function(){});


From: mymth @.> Sent: Sunday, 23 July 2023 5:16 am To: mymth/vanillajs-datepicker @.> Cc: ionultd @.>; Author @.> Subject: Re: [mymth/vanillajs-datepicker] No onhide event (Issue #154)

Sorry, but I'm a bit unclear. Does that mean the "hidehttps://mymth.github.io/vanillajs-datepicker/#/api?id=hide" event is not working as expected?

— Reply to this email directly, view it on GitHubhttps://github.com/mymth/vanillajs-datepicker/issues/154#issuecomment-1646633030, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFZTNT3SX57XXMJV5BOARYDXRQDH5ANCNFSM6AAAAAA2PI4WF4. You are receiving this because you authored the thread.Message ID: @.***>

mymth commented 1 year ago

I can't reproduce the problem. https://codepen.io/mymth/pen/GRwBaoQ