Skip to content

Focusing an element not working since 0.24 if it's a sub modal #2085

@dword-design-honestly

Description

@dword-design-honestly

Describe the bug

I have 2 modals, one calling the other one. In the first modal, focusing an element is working. In the submodal though it's not working. Same code to do the focus. Also using nextTick and onMounted isn't working, only a setTimeout of min 200 ms.

It worked before version 0.24. So, switching the version in the reproduction repo and replacing :autosave via :auto-save will fix it.

Reproduction

https://github.com/dword-design-honestly/demo-modal-focus-submodal-not-working

Used Package Manager

yarn

Validations

  • Have tested with the latest version. This is still alpha version and sometime things change rapidly.
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThere has been no additional replies or questions and the thread is assumed closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions