8.0.15
When reordering MenuTree items with expressions for the label text, the expressions don’t reorder, but everything else does.
How to reproduce:
- Create a menu item with expressions for each item[i].label.text
- Drag and drop the menu items to reorder them
While this is techincally a bug, it’s not something new - this is the behavior we’ve expected from day one because of how bindings are stored as part of the View.
Bindings are configured via a path. In array properties, this is done with something like this (example of a bound Dropdown option label):
"propConfig": {
"props.options[1].label": {
"binding": {
"config": {
"expression": "\"One\""
},
"type": "expr"
}
}
}
When you re-order the array elements, the bindings are still pointing to their original location. In the provided example, I could drag a different option into position “1”, at which point that option’s label would become “One”.
We do have an open ticket to improve this behavior, but no ETA.
1 Like