jQuery UI Widgets › Forums › Editors › DateTimeInput › datetime input calendar popup with document event
Tagged: Angular datetimeinput, bootstrap datetimeinput, javascript datetimeinput, jquery datetimeinput, jqwidgets datetimeinput, jqxdatetimeinput, typescript datetimeinput
This topic contains 3 replies, has 2 voices, and was last updated by jahnvi25 7 years, 8 months ago.
-
Author
-
i have calendar popup comes when user clicks on button.. i have this on div and i have document click event such that when user clicks outside of div(which has calendar popup).. it should hide.. the problem is.. when calendar popup opens.. and user clicks on top year to see all months for years and pick one month.. it fires document click events.. and it closes and does not give chance to user to pick dates from selected month..
but is user selects dates from currently open calendar popup.. it works fine.. it only happens after clicking on top year button..
i hope i am making sense..
is there a way to fix this ?i have more details on this issue..
on the link below..open the menu and open calendar.. if you pick dates..then it does not transfer click event to parent and things are working fine,,(meaning parent menu is still open after selection)
but click on ‘December 2016’ (top grey bar..) then pick any month.. and you will see parent menu gets closed.. since it transfers click event to parent..
is there a way to stop this ? (i know if you do autocloseonclick:false.. on menu.. then it will work. but i am using calendar in some other control and i need to do same)http://jsfiddle.net/jmAuH/239/
Thanks
Hello jahnvi25,
The way you mentioned is ok.
I am not sure to understand clearly.
You could useclose
event of the DateTimeInput andchange
event of the Calendar and then close the Menu.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comno thats not my point.. when you click on Month part of calendar.. to see all months.. it closes the parent menu.. which it should not.. and it does work fine.. if keep clicking on dates in calendar menu.. parent menu stays open..can we somehow make sure that when user is trying to pick month(from month selector of calendar or year selector of calendar part) parent menu stays open..
if still i am not clear.. then i will make video clip to better explain my issue
thanks
-
AuthorPosts
You must be logged in to reply to this topic.