Skip to content

Check buttonReverse property in reset method #91

@fabien-d

Description

@fabien-d

The reset method in the addListeners method needs to take the buttonReverse property into account when resetting the focus. If button are reversed, btnOK and btnCancel should be reversed.

reset = function (event) {
    if (hasInput) input.focus();
    else if (hasCancel) btnCancel.focus();
    else btnOK.focus();
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions