Skip to content

Conversation

@benjamin-albert
Copy link
Collaborator

This is a fix for #22.
The culprit was my quick fix for #19

// If there is an open menu close it first.
if (_openedInstance) {
    _openedInstance.Close(event);
}

It was placed right before this:

if (!this._visible) {
    //open the menu
}

So when the user clicks the input field the opened menu will first be closed and then !this._visible will evaluate to true and the menu will be reopened.

I fixed this the by moving the close opened menu code (and some other code) into the
if (!this._visible).

KidSysco added a commit that referenced this pull request Oct 19, 2015
Prevents the menu from closing when the user clicks the input field
@KidSysco KidSysco merged commit 135c119 into KidSysco:master Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants