Skip to content

Whitespace sometimes causes infinite loop #159

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

Closed
Shkoklev opened this issue Apr 14, 2022 · 1 comment
Closed

Whitespace sometimes causes infinite loop #159

Shkoklev opened this issue Apr 14, 2022 · 1 comment

Comments

@Shkoklev
Copy link
Collaborator

When the option cleanUserText is set to false and the search function returns at least one item in the dropdown, if we try to append a whitespace character to the search term, an infinite loop is triggered and the component freezes
Screenshot 2022-04-14 at 10 21 51

The infinite loop is triggered in the highlightFilter function because the 'keywords' parameter contains an empty string as an element of the array.

@azmeuk
Copy link
Collaborator

azmeuk commented Apr 14, 2022

Fixed by #160

@azmeuk azmeuk closed this as completed Apr 14, 2022
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

No branches or pull requests

2 participants