Automattic / Automattic/jetpack

Contact Form: unsaved changes are lost switching editor modes

Open
#9,523 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Forms Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue

1. Create a new post or page
2. Add a contact form in the visual editor
3. Edit the form and add a new field
4. Switch to the text mode in the editor

#### What I expected

A prompt stating there are unsaved changes

#### What happened instead

Unsaved changes are lost

#### Screenshot

![switch modes](https://user-images.githubusercontent.com/128826/39865186-65d469d4-548f-11e8-9d36-760611cbf26b.gif)

Contributor guide

Open the contributing guide

Research direction

Reproduce the loss by creating a post or page, adding a contact form in the visual editor, adding a field, and switching to text mode. Trace the contact-form editor integration and mode switch, then verify that switching modes prompts about unsaved changes and preserves the added field.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.