LIT Element Thread stops when dialog is open

Hello,
how can I prevent a thread of an lit element to be stopped when a dialog is opened?

My struggle explained:
My lit element is showing a running simulation and when I open a dialog (for example to see event logs) the simulation thread is stopped. How can I prevent the thread to be stopped so that the simulation is running in the background even when a dialog is opened.

Thanks in advance,
Victoria

A modal dialog will block everything that runs behind the dialog: Dialog | Components | Vaadin Docs

Then the answer depends a bit on your usecase, you can check the documentation here: Server-Side Modality | Advanced Topics | Vaadin Docs

ok thanks