Automattic / Automattic/jetpack

GIF Block: Hitting return key in caption will duplicate it

Open
#20,767 2 comments 0 reactions 0 assignees View on GitHub
[Block] GIF [Plugin] Jetpack [Pri] Normal Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

1. Add a caption to the GIF block.
2. Hit Return.

### A clear and concise description of what you expected to happen.

I exit out of the GIF block and proceed to an empty line, like in the core Image block.

### What actually happened

The caption duplicated itself.

### Other information

https://user-images.githubusercontent.com/555336/130118289-ec8e2cc3-1ad2-4292-88e7-6052bd572e5a.mp4

### Operating System

macOS

### OS Version

_No response_

### Browser

Chrome/Chromium

### Browser Version(s)

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Jetpack's GIF block by adding a caption and pressing Return, then compare the behavior with the core Image block. The work is done when Return exits the caption to an empty line without duplicating the caption.

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.