Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Add clickable suggestions for AutocompleteComponent #189

Merged
merged 5 commits into from
Dec 17, 2015
Merged

Add clickable suggestions for AutocompleteComponent #189

merged 5 commits into from
Dec 17, 2015

Conversation

j-em
Copy link
Contributor

@j-em j-em commented Dec 15, 2015

This does three main things:

  1. Hovering a suggestion changes highlightedSuggestionIndex.
  2. A click on a suggestion calls selectAutocomplete() (i.e it autocompletes the input with the clicked suggestion)
  3. suggestionComponent is now styled with {cursor: "pointer"} so it actually looks clickable.

Any thoughts ? :-)

@j-em j-em changed the title Add clickable suggestions for autocomplete Add clickable suggestions for AutocompleteComponent Dec 15, 2015
@vlad-shatskyi
Copy link
Contributor

You are awesome, @j-allard! I planned to do that but never had time.

vlad-shatskyi added a commit that referenced this pull request Dec 17, 2015
Add clickable suggestions for AutocompleteComponent
@vlad-shatskyi vlad-shatskyi merged commit dc9325e into railsware:master Dec 17, 2015
@j-em j-em deleted the add-clickable-suggestion branch December 17, 2015 23:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants