How to hide the trace (scattergl type)

Hello guys,

I use scattergl type for big dataset.
mode: ‘lines+markers’

Why the trace doesn’t disappear when I click on trace0 in legend? Only markers become hidden. If I click on trace1 in legend all traces disappear.

If I use ‘scatter’ type - line with markers disappears normally.

Please, see my example (https://codepen.io/Deymas/pen/wybQgq)

Thank you in advance

That’s a bug. Thanks for the report.