From 3ffd756e7f166980a860bbef228c5eecc4f390b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 6 Nov 2023 18:53:39 +0100 Subject: [PATCH] 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 --- sao/src/view/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } } });