Select first visible siblings when page is hidden

We need to search for all siblings because the next page may also be
invisible.

Closes #12553
This commit is contained in:
Cédric Krier
2023-11-06 18:53:39 +01:00
parent 7274778986
commit 3ffd756e7f
+1 -1
View File
@@ -905,7 +905,7 @@ function eval_pyson(value){
hide: function() {
Sao.View.Form.Page._super.hide.call(this);
if (this.el.hasClass('active')) {
this.el.next(':visible').find('a').tab('show');
this.el.siblings(':visible').first().find('a').tab('show');
}
}
});