-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
After Search, selection of results doesnt work show the chosen items #220
Comments
I solved this using |
I have experienced the same bug. |
Same bug for me. Downgraded to 2.x version |
I have the same issue |
I'm not sure how it should work on react |
I have experienced the same bug. |
What worked for me is to store the value on a state, and pass a setter to the "onChange" property. Note that this is not done at https://react-select-search.com/?path=/story/single-select--search. `export const Search = () => {
};` |
I've also got the same bug. onChange doesn't seem to return any value so I can't store the value in state as a workaround. After a bit of digging, I think this might relate to the Fuse.js version. Originally I had "fuse.js": "^6.5.3" but it seems this library uses "fuse.js": "3.4.5". I had written fuzzySearch exactly like the one in this library (but with a different threshold) but it wasn't working, downgrading fuse.js in my project seemed to fix it. |
Describe the bug
https://react-select-search.com/?path=/story/single-select--search if we search for something and select the results, it doesnt reflect the chosen option
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it should show selected option
Screenshots
Desktop (please complete the following information):
Chrome 94 Desktop(chromeOS)
The text was updated successfully, but these errors were encountered: