| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-3158.surge.sh |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #3158 +/- ##
=========================================
+ Coverage 68.98% 69% +0.01%
=========================================
Files 858 858
Lines 23627 23619 -8
Branches 1893 1889 -4
=========================================
- Hits 16300 16299 -1
+ Misses 6366 6359 -7
Partials 961 961
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
@dlabrecq good catch. I think I fixed it here too - I just passed this.onClick to the input box and that worked |
Sorry, something went wrong.
- set onFilter to null to run the default filter - pass 'this.onClick' to inputs to avoid reseting options Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
|
@boaz . are you still having an issue? If so, can you open an issue for this. Thanks. |
Sorry, something went wrong.
There was a problem hiding this comment.
Retested all select typahead examples and seems to be working. Just need to attach an issue
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM and works as expected
Sorry, something went wrong.
|
Thank you all 🐱 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What:
fixes #3167
Typeahead doesn't filter options correctly. For example, in the Typeahead select input example, clicking "Ala" will display all the results even though they don't contain this substring.
The problem is that in the defaultProps object the onFilter attribute is set to a noop function which makes the if(onFilter) block to execute and eventually sets options to the children.
This PR fixes it by setting onFilter to null which makes the default filter function in onChange to be executed.