Skip to content

Autofocus is lost once vue is loaded #8112

Closed
@alfonsobries

Description

@alfonsobries

Version

2.5.16

Reproduction link

https://jsfiddle.net/alfonsobries/u83vkLe1/

Steps to reproduce

When you add the autofocus attribute to an input it will be focused once is loaded, but when you init a Vue app the focus is lost so you need to manual focus an element

In this second link (witouth Vue the autofocus works)
Autofocus not lost

What is expected?

That an input keep focused if has the autofocus attribute

What is actually happening?

the focus is lost


Its possible to emulate this behaviour but i think it should work witouth need to "emulate" the behaivour

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