Density contour doesn't show the correct hover value in combination with color (Plotly's own example)

Looking at their example:

import as px
df =

fig = px.density_contour(df, x="total_bill", y="tip", color="smoker")

It shows yes even when I hover on no:

And when I disable yes it will show no:

Is there a method to fix it without disabling it from the legend?