Skip to content

Conversation

@aberezkin
Copy link
Collaborator

@aberezkin aberezkin commented Sep 13, 2018

Autosuggest didn't set this.pressedSuggestion to null if this.justSelectedSuggestion is true. That's is the case when we are just clicking a suggestion in the dropdown.

I wrote a test to prevent this regression again. My first intention was to put it in plain-list tests section but it seems that blurInput() helper doesn't take effect if focusInputOnSuggestionClick is true (isInputFocused returns true) and test failed even with new changes. So I put it under do-not-focus-input-on-suggestion-click section where it fails without change and passes with it.

Fixes #568

@alcalyn
Copy link

alcalyn commented Sep 13, 2018

Thank you, this PR fixes the bug. For now, I'll use 9.4.0 until this merged.

@moroshko moroshko merged commit 72c6824 into moroshko:master Sep 13, 2018
@moroshko
Copy link
Owner

Thanks @aberezkin for fixing this!

Published as v9.4.2 now.

@drunewin
Copy link

THANK YOU @aberezkin! Was racking my brain since yesterday trying to figure this one out.

@sedenardi
Copy link

@moroshko any chance you could publish this new version to npm?

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.

5 participants