fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

PeoplePicker does not deal with promise properly

Open Fensterbank opened this issue 9 years ago • 1 comments

Bug Report

  • Package version(s): any
  • Browser and OS versions: any

Describe the issue:

onResolveSuggestion may return a promise. If the promise is resolved while the PeoplePicker has already been unmounted, an exception TypeError: this.input is null is thrown. This issue looks similar than #1045.

Actual behavior:

Error is thrown because this.input is not existing anymore in DOM if the promise is resolved after the component has been unmounted.

Expected behavior:

Component should use componentWillUnmount and deal with resolved promises at any time.

Fensterbank avatar May 12 '17 11:05 Fensterbank

Closing because it seems the root of this issue is discussed here https://github.com/OfficeDev/office-ui-fabric-react/issues/1202

Please reopen if this is a separate issue that still exists

erichdev avatar Oct 12 '17 20:10 erichdev