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

Autosuggest: Fix bug in suggestionHighlight prop when using remaining #1572

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

felixhabib
Copy link
Contributor

Currently, the suggestionHighlight prop when set to remaining will set every match range to end with the length of the suggestion.

This does not work when matches are found in multiple words, where the match ranges may end at the end of a word rather than the end of the total string.

@felixhabib felixhabib requested a review from a team as a code owner September 13, 2024 03:37
Copy link

changeset-bot bot commented Sep 13, 2024

🦋 Changeset detected

Latest commit: 5b28e41

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
braid-design-system Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Co-authored-by: Michael Taranto <michaeltaranto@users.noreply.github.com>
felixhabib and others added 2 commits September 13, 2024 14:14
Co-authored-by: Michael Taranto <michaeltaranto@users.noreply.github.com>
@felixhabib felixhabib force-pushed the fix-autosuggest-remaining-highlights branch from c6b968b to 42e74bf Compare September 13, 2024 04:15
@felixhabib felixhabib closed this Sep 13, 2024
@felixhabib felixhabib reopened this Sep 13, 2024
@felixhabib felixhabib enabled auto-merge (squash) September 13, 2024 05:19
@felixhabib felixhabib merged commit ca72b87 into master Sep 13, 2024
6 checks passed
@felixhabib felixhabib deleted the fix-autosuggest-remaining-highlights branch September 13, 2024 05:23
@seek-oss-ci seek-oss-ci mentioned this pull request Sep 13, 2024
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