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

Add onItemHighlighted prop #192

Merged
merged 2 commits into from
Jun 23, 2020
Merged

Add onItemHighlighted prop #192

merged 2 commits into from
Jun 23, 2020

Conversation

SamuelBolduc
Copy link
Contributor

Useful for updating other parts of the page in reaction to the highlighted item in the autocomplete dropdown being changed.

In my case I want to reference rows in a table by their name, and when a row's name is highlighted in the autocomplete dropdown I want to highlight the actual row. This PR aims to enable this functionality.

If the name onItemHighlighted doesn't make sense, let me know and we can find a better one, I'll update it.

I also bumped the version to v4.7.0 (minor version bump) since this is more than just a bugfix. Again, I can revert this if you have another methodology to manage versions.

Useful for updating other parts of the page in reaction to the highlighted item in the autocomplete dropdown being changed
@jukben
Copy link
Collaborator

jukben commented Jun 19, 2020

Hey! Thank you so much for your PR!

Here is the playground for this revision 🚀

I hope everything is fine! ❤️

This message has been generated automagically

Copy link
Collaborator

@jukben jukben left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! It's great!

Just please remove the version update, I have it automated on my end. 💪

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "@webscopeio/react-textarea-autocomplete",
"version": "4.6.3",
"version": "4.7.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please remove this change? I will do it during release process. I agree it should be 4.7.0 🙏

@SamuelBolduc
Copy link
Contributor Author

SamuelBolduc commented Jun 22, 2020

Alright, makes sense. I reverted it back to 4.6.3 like it was before the commit. Thanks!

Copy link
Collaborator

@jukben jukben left a comment

Choose a reason for hiding this comment

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

Awesome!

@jukben jukben merged commit 2edfcb7 into webscopeio:master Jun 23, 2020
@jukben
Copy link
Collaborator

jukben commented Jun 23, 2020

Released https://github.com/webscopeio/react-textarea-autocomplete/releases/tag/v4.7.0 🚀

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.

None yet

2 participants