I'm experiencing a consistency/stability issue with the taskeditor.
The issue started when I attached a custom grid to the editor.
I'm loading the config first then attaching the store using beforeTaskEditShow as a trigger (snippet included below).
The included clip will show after a page load, the first attempt to open the taskeditor from a drag-create action fails. This happens every time. There is no error provided to the console. The second attempt is successful.
Keeping the modal window open is when navigating the grid. In this example, selecting "no results" from the combo closes the modal.
In other experiences, the modal also occasionally closes either when an item is selected from a connected store, or when the list from the combo-grid-widget is scrolled or simply when the combo-grid-widget caret is clicked (clip 2)In a quick attempt to prevent focus being lost, wasn't able to get modal working. Even when rolling customizations back.
I've included code to fit the context below.
Thanks!
====
Editor Config Snippet
const taskEditorConfig = {
modal: true,
items: {
resourceGridTab: {
items: {
roomGrid: {
type: 'grid',
name: 'roomGrid',
store: [],
columns: [
{
type: 'widget',
text: "Room",
widgets: [
{
type: 'combo',
store: [],
name: 'resourceId',
multiSelect: false,
}
]
}
]
}
}
}
}
}
Store Attachment
beforeTaskEditShow(event) {
attachStoreToGrid({event})
}
function attachStoreToGrid({event}){
let
eventStoreData = event.source.eventStore.records,
widgetMap = event.editor.widgetMap;
let gridStore = new Store({
data: eventStoreData.filter(r => r.type == 'filteredType'),
id: "gridStore"
});
widgetMap.roomGrid.store = gridStore ;
}