Test for expander before updating it on selection changed

issue10367
This commit is contained in:
Cédric Krier committed 2021-09-20 17:23:43 +02:00
1 parent 50582a34b3
commit c0bf408175
1 file changed
+6 -4
+6 -4
View File
@@ -1709,10 +1709,12 @@
this.set_selection(is_selected);
if (is_selected) {
this.tree.select_changed(this.record);
if (this.is_expanded()) {
this.tree.update_expander('less');
} else if (this.expander.css('visibility') == 'visible') {
this.tree.update_expander('more');
if (this.expander) {
if (this.is_expanded()) {
this.tree.update_expander('less');
} else if (this.expander.css('visibility') == 'visible') {
this.tree.update_expander('more');
}
}
} else {
this.tree.select_changed(