Skip to content

Conversation

@gaearon
Copy link
Collaborator

@gaearon gaearon commented Apr 4, 2019

This fixes the "disappearing selection" problem you found in #61 (comment).

I introduced it in #62. The mistake is that moving from '' to '' in search field shouldn't reset. Only increasing the search field should.

@gaearon gaearon requested a review from bvaughn April 4, 2019 23:50
searchText.indexOf(prevSearchText) === 0
) {
const didAddToSearchText =
searchText.length > prevSearchText.length &&
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is new.

@bvaughn bvaughn merged commit bfbb4ac into bvaughn:master Apr 5, 2019
@bvaughn
Copy link
Owner

bvaughn commented Apr 5, 2019

🤘

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