Topic: Date Picker close when clicked outside of the datepicker
We normally seen other date pickers,which actually close when we click outside of the date picker.
So i thought to implement the same here in our FA with js. So just tried this and it works fine. Hope it will be good for users, if you commit it to core.
window.addEventListener('click', function(e){
if (document.getElementById('CC').contains(e.target)){} else{
if (cC.visible()) {
cC.hide();
}
}
});
Append this code to date_picker.js file,which actually created from ui_view.inc
HRM CRM POS batch Themes