Sp-starter-kit: MyLinksDialog opens once only

Created on 15 Jan 2019  路  2Comments  路  Source: pnp/sp-starter-kit

Category

  • [ ] Question
  • [x] Bug
  • [ ] Enhancement

Expected or Desired Behavior

When I am using spfx 1.7.0 with "CollabFooter" extension I have issues with "MyLinksDialog", it opens only once, then the grey background appears only.

Observed Behavior

When you are editing "MyLinksDialog" in "CollabFooter" extension the modal window should be opened every time while you're clicking on it, not once.

Steps to Reproduce

Install extension and click on edit "Edit My Links" button more than 1 times.

I found a solution to fix it: onAfterClose and ReactDOM.unmountComponentAtNode methods hsould be added just to clean up the element for the next dialog. I've created pull request for it.

fixed

Most helpful comment

I noticed you had a PR for this. I believe this was also fixed in #232

All 2 comments

I noticed you had a PR for this. I believe this was also fixed in #232

@krak86 @bcameron1231 I'ts fixed aswell in my PR.
Using OnAfterClose will only solve this issue in Chrome etc.
My way of doing it works in all browsers. It's essentially the same thing but done before we close the dialog, not after 馃榾

Was this page helpful?
0 / 5 - 0 ratings