Automattic / Automattic/jetpack

Map resizing is ineffective via drag handle and resize control

Open
#40,713 1 comment 0 reactions 0 assignees View on GitHub
[Block] Map [Experiment] AI labels added [Feature Group] Editor Experience [Pri] Normal [Status] Auto-allocated Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Description:

Dragging to resize the map does not reinitialize the map properly, causing it to appear broken. Users must refresh the page to resolve this issue, which is not ideal.

Additionally, resizing the map using the height control in the Inspector is cumbersome, as the changes are not immediately visible without deselecting the field.

### Steps to Reproduce:
1. Drag the resize handle to adjust the map’s size.
2. Observe that the map does not reinitialize and appears broken.
3. Use the height control in the Inspector to adjust the map height.
4. Observe that the height changes are not applied until you deselect the field.

### Expected:
• Resizing the map using the drag handle should reinitialize the map and render it correctly.
• Height adjustments in the Inspector should update in real-time without requiring deselection of the field.

### Actual:
• The map appears broken after resizing with the drag handle, requiring a refresh to fix.
• Height changes made in the Inspector require deselecting the block to apply.

### Visual

https://github.com/user-attachments/assets/b79fa0a5-b9ae-4331-b7a7-4da1d097ea68

Contributor guide

Open the contributing guide

Research direction

The issue identifies the map drag handle and Inspector height control as the entry points; start by tracing their resize and update behavior. Done means drag resizing reinitializes and renders the map correctly, while Inspector height changes appear immediately without deselection; verify both reproduction steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.