Skip to content

Blocking dialog often set the focus in wrong element #8011

@cnshenj

Description

@cnshenj

Environment Information

  • Package version(s):
    "office-ui-fabric-react": "^6.138.1",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",

Please provide a reproduction of the bug in a codepen:

https://codesandbox.io/s/5x3zvo621x

Repro 1

  1. Click the 2nd TextField.
  2. Click the Checkbox.

Repro 2

  1. Click the empty space of the dialog so none of the input elements has focus
  2. Click the 2nd TextField

Actual behavior:

The 1st TextField gets focus.

Expected behavior:

In Repro 1, the Checkbox should have focus
In Repro 2, the 2nd TextField should have focus

Note: If modalProps={{ isBlocking: true }} is removed, then there is no issue.

Priorities and help requested:

Are you willing to submit a PR to fix? (Yes, No)
Maybe

Requested priority: (Blocking, High, Normal, Low)
High. This makes blocking editable dialog unusable.

Products/sites affected: (if applicable)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions