I've upgraded to the latest version of Streamlit, which is 1.42.0
Loading the example from the README gives the following:
import streamlit as st
from streamlit_plotly_events import plotly_events
import plotly.express as px
# Writes a component similar to st.write()
fig = px.line(x=[1], y=[1])
selected_points = plotly_events(fig, key = "i")
# Can write inside of things using with!
fig = px.line(x=[1], y=[1])
selected_points = plotly_events(fig, key = "j")
# Select other Plotly events by specifying kwargs
fig = px.line(x=[1], y=[1])
selected_points = plotly_events(fig, click_event=False, hover_event=True, key = "k")

Is there a way to mitigate this issue?
I've upgraded to the latest version of Streamlit, which is 1.42.0
Loading the example from the README gives the following:
Is there a way to mitigate this issue?