diff --git a/src/App/App.tsx b/src/App/App.tsx index 66a2d05..c5286e1 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -464,9 +464,10 @@ function ConnEditor(ast: Statechart, plant: Plant, plantConns: Conns, setPl const scInputs = <>{ast.inputEvents.map(e => )}; return <> {/* Plant UI events can go to SC or to Plant */} - {plant.uiEvents.map(e =>
- + {plant.uiEvents.map(e =>
+ setPlantConns(conns => ({...conns, [`sc.${e}`]: domEvent.target.value.split('.') as [string,string]}))}> @@ -487,9 +489,10 @@ function ConnEditor(ast: Statechart, plant: Plant, plantConns: Conns, setPl
)} {/* Plant output events can go to Statechart */} - {[...plant.outputEvents.map(e =>
- + {[...plant.outputEvents.map(e =>
+