-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
docs(Icon): "Show similar" does not filter at all on the deployed docs site #2193
Comments
@patrikmolsson thanks for report, any investigation of this problem is much appreciated |
@layershifter I can look into it! |
It seems like it was disabled by design in one of the library files, see Semantic-UI-React/src/lib/leven.js Line 7 in 0a29f6c
Although, I removed that line on my deployed pages, and it seems to work OK. |
What are your thoughts on this, @layershifter ? Can you think of any reason why this line should be there? I found another usage of
What is the usage of that function? |
@patrikmolsson Thanks for your research 👍 The I'm think that the better solution is duplicate the |
@layershifter Sure, I can do it! However, I don't really follow. If the customPropTypes are removed in the production build, then the if statement in the leven.js file have no effect, right? Then we could just remove it? |
There are two bundles in this repo, the We include a custom copy of However, the docs do not have this limitation. They actually use Now, the doc site will always include a bundled version of leven. |
I made a pull request in #2220. Any feedback is appreciated :) |
Steps
Go to https://react.semantic-ui.com/elements/icon, have the "Show similar" checked (it is by default), and search for "home".
Environment
Have tested in Firefox 56.0.1 and Chrome 61.0.3163.100.
Expected Result
The icon "home" will show up (and maybe some related icons)
Actual Result
No filtering happens at all, for no search strings. It does however filter when not having the "Show similar" checked.
It does work on the local build, however. I.e. when running
yarn start
in the source directory and accessing it from localhost, the "Show similar" functionality works.The text was updated successfully, but these errors were encountered: