elsa-workflows / elsa-workflows/elsa-studio

JSException when switching activities quickly (C# input selected, Blazor Server)

Open
#795 1 comment 2 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
301
Forks
181
Avg merge
17h 12m
Merged PRs (30d)
42

Description

### **Version**

Elsa Server: 3.6.0
Elsa Studio (Blazor Server): 3.6.0
Hosting Model: Blazor Server

---
### Issue
When using Elsa Studio (Blazor Server), rapidly switching between activities causes a JavaScript exception if an activity contains an input configured with C# expression mode.

This results in:

Console errors (Monaco editor not found / disposed object issues)
Eventually, a visible error banner in the UI

---
## Steps to Reproduce

1. Open any workflow in the designer (Blazor Server hosting)
2. Select an activity that has at least one input
3. Switch that input's expression type to **C#**
4. Quickly click between different activities on the canvas
5. Observe errors in browser console and error banner on screen

---

NOTE: The issue occurs specifically when an activity contains an input field with C# expression mode selected.

Image

https://github.com/user-attachments/assets/e230bfc1-4611-4c8d-95db-bd9b801685b4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.