Invalid property specified for object of type plotly.graph_objs.layout.Legend: 'groupclick'

I am trying to use the groupclick property in update layout,
This is my code
fig.update_layout(legend=dict(groupclick=“toggleitem”))

Error: Invalid property specified for object of type plotly.graph_objs.layout.Legend: ‘groupclick’

Do you know the error?

Additional information: I am using plotly 5.11.0