Iframe closes web page when I change Tab

Hello dear community,

Context: I have an application with multiple tabs and inside one dcc.tab I have an html.Iframe children (ttyd client).
ttyd is a simple command-line tool for sharing terminal over the web. ttyd enable me to remotely access a Linux terminal via web (by providing a URL). I use this URL as the source property of the html frame to embed the terminal console in the tab.

layout = html.Div([
    dcc.Tabs(
        persistence=True,
        persistence_type='local',
        children=[
            dcc.Tab(
                label="example 1",
                value="example 1",
                className="custom-tab",
                selected_className="custom-tab--selected",
                children=html.Iframe(
                    id="ttyd",
                    src="http://localhost:7681/",
                    height=800,
                    width=1900),
            ),
            dcc.Tab(
                label="example 2",
                value="example 2",
                className="custom-tab",
                selected_className="custom-tab--selected",
                children=html.Div("This is a placeholder for now")
                )]
    ])

Issue description : when I switch to the 2nd tab, the webpage exits (causing my ttyd client to get disconnected - process killed - and losing current session when I comeback to the terminal tab).
Is there a way to persist the webpage (not close it) when I change tabs ?

Thank you in advance for your ideas and solutions.