Skip to content

Dialog is not returning focus after updating to vue 3.5 #3686

Open
@jardakotesovec

Description

@jardakotesovec

After recent update to vue 3.5, we encountered regression on setting focus after Dialog is closed, which is significant accessibility setback.

It seems that with vue 3.5 in some scenarios computed properties get calculated sooner than before, which makes it skip to restoration in unMounted hook.

Here is PR to address it #3687

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

v1.7.23

What browser are you using?

Chrome

Reproduction URL

Describe your issue

In the reproduction URL, you can reproduce it by clicking on Open Dialog 2, closing the Dialog. And when hitting <Tab> you can see its starting from Open Dialog 1, instead of Open Dialog 2 button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions