Skip to content
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

Merged

Conversation

kennylam
Copy link
Member

Related Ticket(s)

#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, but it is actually necessary when the searchNoRedirect is used

Changelog

New

  • added back the onKeyDown function

(cherry picked from commit a176c21)

…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)
@kennylam kennylam requested a review from a team as a code owner March 17, 2022 13:33
@kennylam kennylam requested review from RichKummer and annawen1 March 17, 2022 13:33
Copy link
Member

@emyarod emyarod left a 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!

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Mar 17, 2022

@ibmdotcom-bot
Copy link
Contributor

Copy link
Member

@ariellalgilmore ariellalgilmore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Mar 17, 2022

@kennylam kennylam added the Ready to merge Label for the pull requests that are ready to merge label Mar 17, 2022
@kennylam kennylam merged commit d1d1c95 into carbon-design-system:release/v1.32.0 Mar 17, 2022
@kennylam kennylam deleted the fix/search-no-redirect branch March 17, 2022 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants