[CALENDAR] Hide calendar if clicked outside of it? (onBlur??

Can You tell me how to force calendar to hide if I click outside of it?



It won’t be much of a problem, but if I rerender part of my page by AJAX and have calendar absolutely positioned as a child of , calendar stays in place :slight_smile: Usally over some important content. This is the reason why I need this kind of solution…

There is no onBlur event, but next line of code must cause necessary effect

dhtmlxEvent(document.body, “click”, function(){
    mycalendar.hide()
});