mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Deselect tree nodes when reacting to form load event (fixes #7401)
Multiselected nodes are only possible in batch mode, which would never trigger a form load event.
This commit is contained in:
parent
4a8236ffa7
commit
5a44ea2e20
@ -307,6 +307,7 @@
|
||||
if(id) {
|
||||
node = this.getNodeByID(id);
|
||||
if(node.length) {
|
||||
this.jstree('deselect_all');
|
||||
this.jstree('select_node', node);
|
||||
} else {
|
||||
// If form is showing an ID that doesn't exist in the tree,
|
||||
|
Loading…
Reference in New Issue
Block a user