Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Adding focus to modal-window in modalWindow directive new in 0.10.0 #1696

Closed
@dougmcclurg

Description

@dougmcclurg

I recently upgraded my modal directive from 0.6.0 to 0.10.0.

My usage involves focusing an input inside the modal on launch which i was previously able to do in 0.6.0.

The addition of the below code in the modal directive in 0.10.0 does not allow me to focus on my input.

// focus a freshly-opened modal
element[0].focus();

The only things i can do to get around this are particularly messy and i was wondering if adding focus to the modal-window could be a configurable option?

If anybody has a clean way of solving i'd love to hear about it.

Thanks for all your killer work.

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