Hello!
VERSION: 5.3.1
When the tree grid component is the only component on the tab flexipage and I drag a row and drop it on top of a leaf row, it makes the leaf row a parent and inserts the dragged row underneath it. However, when I try this same behavior on a record page that has more components, it behaves differently. When this tree grid is added under any component, it does not make the leaf row a parent but, inserts the dragged row after the leaf row.
This is the configuration:
host.create('TreeGrid', {
tree: true,
columns: [
{
text: 'Name',
field: 'name',
flex: 1,
type: 'tree',
},
],
store: {
tree: true,
readUrl: `@salesforce/resourceUrl/bryntumPreview/data/treeGrid.json`,
autoLoad: true,
},
selectionMode: {
row: true,
checkbox: true,
},
features: {
rowReorder: { dropOnLeaf: true },
},
});
When I checked content.valid
value as I hover over leaf row it keeps stating it is valid but, the context validity seems to be determining only for the before and after drop zones, not the current row drop zone.