mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-01-11 14:52:55 +01:00
Added styles overhaul task docs
This commit is contained in:
@@ -63,6 +63,25 @@ export function SidePanel() {
|
||||
group
|
||||
);
|
||||
|
||||
// ---
|
||||
// Listen for node selection changes to force PropertyEditor recreation
|
||||
// This ensures the panel updates when switching between different nodes
|
||||
SidebarModel.instance.on(
|
||||
SidebarModelEvent.nodeSelected,
|
||||
() => {
|
||||
const panelId = 'PropertyEditor';
|
||||
setPanels((prev) => {
|
||||
const component = SidebarModel.instance.getPanelComponent(panelId);
|
||||
if (component) {
|
||||
// Force recreation with new node props
|
||||
prev[panelId] = React.createElement(component);
|
||||
}
|
||||
return prev;
|
||||
});
|
||||
},
|
||||
group
|
||||
);
|
||||
|
||||
// ---
|
||||
// Support Hot reload on all panels
|
||||
SidebarModel.instance.on(SidebarModelEvent.HotReload, () => {
|
||||
|
||||
Reference in New Issue
Block a user