details:   https://code.tryton.org/tryton/commit/a4c2861d77a7
branch:    default
user:      Cédric Krier <[email protected]>
date:      Sun Jan 18 13:38:12 2026 +0100
description:
        Wait for the DOM to be ready before hiding the notification indicator.

        Although the NotificationMenu is constructed on load, the DOM may not 
yet be
        ready, meaning that the observer triggered by the .hide call cannot 
find any
        other indicators to hide. Wait for the DOM to be ready to hide the 
notification
        indicator.

        Closes #14513
diffstat:

 sao/src/notification.js |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 2577d8d64dc7 -r a4c2861d77a7 sao/src/notification.js
--- a/sao/src/notification.js   Mon Jan 19 19:05:51 2026 +0100
+++ b/sao/src/notification.js   Sun Jan 18 13:38:12 2026 +0100
@@ -29,7 +29,11 @@
                     attributes: true,
                     attributeFilter: ['style'],
                 });
-            this.indicator.hide();
+            jQuery(document).ready(() => {
+                // Wait for the DOM to be ready to let the observer find the
+                // other indicators
+                this.indicator.hide();
+            });
         }
 
         fill() {

Reply via email to