Skip to content

NormalPeoplePicker with item limit on IE11 issue #3873

@ghost

Description

Bug Report

  • Package version(s): 5.45.3
  • Browser and OS versions: IE11 (11.125.16299.0)

Priorities and help requested

Requested priority: Normal

Describe the issue:

  1. Use following code with any itemLimit:
    <NormalPeoplePicker
    onChange={(val) => {}}
    onResolveSuggestions={this._onFilterChanged}
    itemLimit={5} />
    (_onFilterChanged implementation is from PeoplePicker example on
    https://developer.microsoft.com/en-us/fabric#/components/peoplepicker)

  2. Write something in the people picker

  3. See suggestions

  4. First one is automatically highlighted

  5. Hit enter or tab on keyboard (do not use mouse)

Actual behavior:

Component rendering crashes with following error:
Exception in NormalPeoplePicker.render(): TypeError: Unable to get property 'inputElement' of undefined or null reference
at BasePicker.prototype.renderSuggestions (.../Scripts/submit-content-for-approval.js:42290:10)
at BasePicker.prototype.render (.../Scripts/submit-content-for-approval.js:42272:10)
at obj[methodName] (.../Scripts/submit-content-for-approval.js:16994:22)
at h (.../lib/react/react-dom.production.min.js:130:356)
at beginWork (.../lib/react/react-dom.production.min.js:133:473)
at d (.../lib/react/react-dom.production.min.js:158:387)
at f (.../lib/react/react-dom.production.min.js:159:212)
at g (.../lib/react/react-dom.production.min.js:159:462)
at t (.../lib/react/react-dom.production.min.js:167:1)
at x (.../lib/react/react-dom.production.min.js:166:247)

Expected behavior:

The item is selected the same way as by clicking it.

Note that this works fine on all other common browsers, like Chrome, Firefox, even Edge.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions