Detect if Property Pane is open for the current Web Part

Iron Contributor

I have a SharePoint page with several instances of a same SPFx Web Part.

 

How can my SPFx code detect if the Property Pane is open for the current instance of my Web Part?

 

I have found properties such as displayMode or isPropertyPaneOpen, but they toggle at the page level, not at the Web Part level. For example, when the Property Pane is open, all Web Parts on the page have isPropertyPaneOpen=true.

0 Replies