-
Notifications
You must be signed in to change notification settings - Fork 156
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
fix(masthead-search): react searchNoRedirect prop doesn't work on enter #8541
fix(masthead-search): react searchNoRedirect prop doesn't work on enter #8541
Conversation
…er (carbon-design-system#8516) ### Related Ticket(s) carbon-design-system#8334 ### Description people using the `searchNoRedirect` prop and press enter within the search box are still being redirected. The `onKeyDown` was removed in this [PR](carbon-design-system#7365), but it is actually necessary when the `searchNoRedirect` is used ### Changelog **New** - added back the `onKeyDown` function <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) --> (cherry picked from commit a176c21)
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.
looks good to me!
Deploy preview created for package Built with commit: 8111c5d8c2886dd14e848434c9179d391c8a8f1b |
Deploy preview created for package Built with commit: fcabb0b76129e9f0e42026fa323a64e5dd1e8319 |
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!
Deploy preview created for package Built with commit: 8111c5d8c2886dd14e848434c9179d391c8a8f1b |
Related Ticket(s)
#8334
Description
people using the
searchNoRedirect
prop and press enter within the search box are still being redirected. TheonKeyDown
was removed in this PR, but it is actually necessary when thesearchNoRedirect
is usedChangelog
New
onKeyDown
function(cherry picked from commit a176c21)