WebVOWL_work

Fix edit-mode right panel: delegate selection to editSidebar sidebar.updateSelectionInformation

6/9/2026 3:52:42 PM

Changes

Details

diff --git a/src/app/js/sidebar.js b/src/app/js/sidebar.js
index 4442c1d..7ac0e93 100644
--- a/src/app/js/sidebar.js
+++ b/src/app/js/sidebar.js
@@ -183,6 +183,15 @@ module.exports = function ( graph ){
       return;
     }
 
+    // In edit mode the right panel is #generalDetailsEdit — delegate there
+    if ( graph.editorMode && graph.editorMode() ) {
+      var es = graph.options().editSidebar();
+      if ( es && es.updateSelectionInformation ) {
+        es.updateSelectionInformation(selectedElement);
+      }
+      return;
+    }
+
     if ( !selectedElement ) {
       clearSelectedNodePanel();
       return;