Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto "Focus" when click on "dropdown-filter-dropdown" icon #14

Open
RrOoSsSsOo opened this issue Jun 14, 2018 · 1 comment
Open

Auto "Focus" when click on "dropdown-filter-dropdown" icon #14

RrOoSsSsOo opened this issue Jun 14, 2018 · 1 comment

Comments

@RrOoSsSsOo
Copy link

It isn't a real issue but a very usefull feature! With this code into .js is possible to obtain the desidered behaviour

From:

FilterMenu.prototype.initialize = function () {
    ...
    $trigger.click(function () {
        return $content.toggle();
    });
    ...

To:

FilterMenu.prototype.initialize = function () {
    ...
    $trigger.click(function () {
        $content.toggle();
        $menu.find("input[type=text]").focus();
        return;
    });
    ...
@chestercharles
Copy link
Owner

feel free to make a pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants