sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

isRenderedByWebPart method on propertyPane does not return true the first time it's opened

Open devinprejean opened this issue 8 years ago • 6 comments

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.

devinprejean avatar Mar 16 '18 19:03 devinprejean

I have posted my code to stackExchange

devinprejean avatar Mar 16 '18 19:03 devinprejean

Just noticed that if I click inside the webpart to give it focus THEN click the custom button it works correctly.

devinprejean avatar Mar 16 '18 19:03 devinprejean

Thanks for your feedback. We will take a look at this issue.

GrahamMcMynn avatar Mar 19 '18 21:03 GrahamMcMynn

Any update on this?

devinprejean avatar May 29 '18 19:05 devinprejean

@VesaJuvonen @waldekmastykarz Anyone, what is the status of this?

devinprejean avatar Jun 26 '18 20:06 devinprejean

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.

msft-github-bot avatar Jan 22 '20 21:01 msft-github-bot