Skip to content

[Bug]: After closing one Dialog can't focus on Input on already opened Dialog #27914

@Senadtm87

Description

@Senadtm87

Library

React Components / v9 (@fluentui/react-components)

System Info

@fluent-ui/react-components v9.20.2

Are you reporting Accessibility issue?

None

Reproduction

https://codesandbox.io/s/dreamy-bouman-5tks0o?file=/main.tsx

Bug Description

If I have one dialog opened with input field, if I open another one and close it (Dialog 2), I can't focus on Input field on Dialog 1.
There is similar bug #26824 which seems to be fixed with latest version at the moment 9.20.2, but my issue persists on latest version.

Opening of second dialog is done thru code by setting Dialog open property to true, if I put button with DialogTrigger around it on Dialog 1, if I then click to open second Dialog, I can focus on input on first, if that button is hidden and I click on it thru code bug above still appears.

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

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