-
Notifications
You must be signed in to change notification settings - Fork 9
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
Allow custom afterDropdownInputFocus on FilterSearch #432
Conversation
Current unit coverage is 92.20456802383316% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! but I imagine we'll want someone from your team to review as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the beta version, since it looks like there aren't any other commits on develop, you can either bump the version to beta in this PR or as a separate one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update the PR description with the new prop name and to mention that you're cutting a beta version from this PR?
### Features - Added a custom `afterDropdownInputFocus` prop to the `FilterSearch` component that is called after focus enters the input. This can be used, for example, to fire analytics events when a user clicks into the `FilterSearch` input. (#432)
This change adds a param so that callers can pass in a custom afterDropdownInputFocus method for FilterSearch's input box. This request was brought up to allow analytics event logging upon clicking on the input box.
This change also bump the version to 1.6.0-beta.432.
J=TECHOPS-11352
TEST=auto, manual
Ran
npm run test
. Made suretest-site
still works without a custom afterDropdownInputFocus method.Used my local
search-ui-react
in the client's repo. Verified clicking into the input box triggers an analytics event and selecting an option from the dropdown properly hides it.https://drive.google.com/file/d/1-kIYMU5TQAB2CzLxhSFpfbIJFqWhRJAR/view?usp=sharing