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

Search: Prevent IE11 from spawning overlay on load #19141

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

jsnmoon
Copy link
Member

@jsnmoon jsnmoon commented Mar 11, 2021

Fixes #19100.

Changes proposed in this Pull Request:

  • Prevents the onChange handler from binding to SearchBox when the modal is not visible. This prevents IE11 from triggering an onChange event on window load, which occurs when the input's placeholder contains a Unicode character.

Does this pull request change what data or activity we track or use?

No.

Testing instructions:

  • Apply this change to your site with a Jetpack Search subscription.
  • Navigate to / in Internet Explorer 11 :)
  • Ensure that the search modal does not appear upon loading the page.
  • Perform a site search and ensure that the search modal appears as expected.
  • Alter the query via the modal search input. Ensure that the interface works as expected.

@jsnmoon jsnmoon added [Type] Bug When a feature is broken and / or not performing as intended [Status] Needs Review To request a review from Crew. Label will be renamed soon. [Feature] Search For all things related to Search Instant Search labels Mar 11, 2021
@jsnmoon jsnmoon requested review from a team March 11, 2021 22:54
@jsnmoon jsnmoon self-assigned this Mar 11, 2021
@matticbot
Copy link
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello jsnmoon! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer and confirm D58577-code works as expected before merging this PR. Once this PR is merged, please commit the changes to WP.com. Thank you!
This revision will be updated with each commit to this PR

@github-actions github-actions bot added the [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ label Mar 11, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 11, 2021

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


If you are an automattician, once your PR is ready for review add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.undefined


jetpack plugin:

  • Next scheduled release: April 6, 2021.
  • Scheduled code freeze: March 29, 2021

bluefuton
bluefuton previously approved these changes Mar 12, 2021
Copy link
Contributor

@bluefuton bluefuton left a comment

Choose a reason for hiding this comment

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

Excellent sleuthing! Works well for me.

@bluefuton
Copy link
Contributor

@jeherve can we nominate this for a point release if there's one planned? (9.5.1?)

@jeherve jeherve added this to the 9.6 milestone Mar 12, 2021
@jeherve
Copy link
Member

jeherve commented Mar 12, 2021

can we nominate this for a point release if there's one planned? (9.5.1?)

We have no point release planned so far, but I'll keep it in mind if something comes up.

@jeherve jeherve added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from Crew. Label will be renamed soon. labels Mar 12, 2021
Copy link
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

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

This should be good to merge. I've added a changelog entry with vendor/bin/changelogger add and committed it in ea63974

@jsnmoon jsnmoon merged commit 5037c8b into master Mar 12, 2021
@jsnmoon jsnmoon deleted the fix/search-ie11-modal-summon branch March 12, 2021 21:07
@matticbot matticbot removed the [Status] Ready to Merge Go ahead, you can push that green button! label Mar 12, 2021
@github-actions
Copy link
Contributor

Great news! One last step: head over to your WordPress.com diff, D58577-code, and commit it.
Once you've done so, come back to this PR and add a comment with your changeset ID.

Thank you!

@jsnmoon
Copy link
Member Author

jsnmoon commented Mar 12, 2021

r222673-wpcom.

@jeherve
Copy link
Member

jeherve commented Mar 15, 2021

Cherry-picked to jetpack/branch-9.5 in 3090276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Search For all things related to Search [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ Touches WP.com Files [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instant Search: Search modal is opened by default in IE11
5 participants