Skip to content

x-ref won't focus an input #317

@flick36

Description

@flick36

Hi so, I've a modal wich i open abusing the dispatch events (so i can open from outide the component), and i want to focus an input so I've tried using x-ref on the input and then applied focus via $nextTick but it won't focus the input, contrary to when i do $el.focus() it'll focus the modal correctly. I've setup an JSBIN here: https://jsbin.com/wigupiloxa/edit?html,output. Any idea what can i do to focus the input?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions