-
Notifications
You must be signed in to change notification settings - Fork 800
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
Map block: Allow block selection when Mapkit is being used #38956
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
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 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
@@ -80,11 +106,25 @@ const MapkitComponent = forwardRef( | |||
onMapLoaded={ onMapLoaded } | |||
/> | |||
) : null } | |||
|
|||
{ /* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */ } |
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.
Noting that I'm just focussed on mouse click events - this PR doesn't introduce other accessibility issues but I did notice existing ones that should get fixed later: #38986
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.
Although I am not able to replicate the issue, this doesn't seem to introduce any problems either.
@jp-imagines can you test and check if this solves the issue for you?
@darssen I was able to replicate the original issue on a test site again, and applying this PR did fix it – I can select the Map block again and interact with it on a second click. |
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.
Great!
🚢
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.
I was only able to reproduce the issue on a self-hosted site using document.cookie = "map_provider=mapkit";
, but can confirm that the PR solved the problem.
Great job 👍
Fixes #31870
Proposed changes:
Other information:
Jetpack product discussion
#31870
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
On self-hosted:
document.cookie = "map_provider=mapkit";
. You should then be able to add a map using Mapkit. Make sure the map style is not 'Terrain' as that uses Mapbox.On WoA / Simple:
/wp-admin/post.php?post={postnumber}&action=edit
)., and without the PR applied you should be able to replicate the issue as above. Make sure the map style is not 'Terrain' as that uses Mapbox.