Editor v1.4.2
I'm using Bootstrap Datepicker plugin
I have a minor issue with autoclose
not working when the editor closes.
The editor is initialized this way:
{
"name": "date2",
"type": "date",
"opts": {autoclose: true},
"id": "date2"
},
Autoclose works fine if the user clicks on a date. The problem is, if the user moves about the table with the tab or cursor keys and they arrive at a date field, the calendar opens. If they continue tabbing and navigate away from the cell, the calendar remains open.
I tried this approach, but to no avail:
.on('preClose', function () {
editor.field('date2').hide();
})
I also tried the above call in the close
event handler, but apparently the calendar opens before the editor and what gets closed is the calendar on the cell that is about to receive the focus.
Does anyone have any thoughts on how to get the calendar to close when the user navigates away from a date cell? There is no issue if the user clicks in a different cell. The calendar closes just fine.
TIA.