Menu Bar Items Disappear on Hover After Upgrading Theia from 1.59 to 1.61 #16127
-
Hi everyone, We've recently upgraded our application from Theia 1.59 to 1.61, and encountered a strange issue with the menu bar behaviour. In our application, we extend MenuContribution and use MenuModelRegistry to customize the menu bar. We rely on one of the default menu items provided by Theia and hide the rest using CSS:
This approach worked fine in 1.59. However, after upgrading to 1.61, we noticed that hovering over any menu item causes all of them to disappear. Refreshing the page temporarily restores them, but the issue recurs on hover. The browser console shows the following error:
It appears that the menu bar logic is attempting to access a DOM element that no longer exists due to our CSS-based hiding strategy. My Questions:
Any guidance or suggestions would be greatly appreciated! Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hey @AnirudhBoddu, the recommended approach to hiding/removing menu items is by using the |
Beta Was this translation helpful? Give feedback.
-
I have successfully used the |
Beta Was this translation helpful? Give feedback.
Hey @AnirudhBoddu,
the recommended approach to hiding/removing menu items is by using the
unregisterMenuAction
method of theMenuModelRegistry
. The issue you're experiencing is likely due to our migration from Phosphor.js to Lumino.