isRenderedByWebPart method on propertyPane does not return true the first time it's opened
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
When you call .open() on the propertyPane object the isRenderedByWebPart() should return true when a user opens it via code such as the .open() method and should return false when the user clicks the edit button of the webpart itself
Observed Behavior
The first time .open() is called it returns false. When you run .open() again it returns true. If you close the panel and run .open() again it returns true.
Steps to Reproduce
Create new webpart -> add button inside webpart to call this.context.propertyPane.open() -> override getPropertyPaneConfiguration() -> check for this.context.propertyPane.isRenderedByWebpart() -> click button used to call .open()
Submission Guidelines
Thanks for your contribution! Sharing is caring.
I have posted my code to stackExchange
Just noticed that if I click inside the webpart to give it focus THEN click the custom button it works correctly.
Thanks for your feedback. We will take a look at this issue.
Any update on this?
@VesaJuvonen @waldekmastykarz Anyone, what is the status of this?
This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open the issue.