diff --git a/sao/src/view/form.js b/sao/src/view/form.js index 9b9e97b330..9b420da404 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -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'); } } });