Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#45284 closed defect (bug) (fixed)

Meta Boxes: Prevent the meta box form from being submitted when pressing Enter

Reported by: pento's profile pento Owned by: pento's profile pento
Milestone: 5.0 Priority: normal
Severity: normal Version: 5.0
Component: Editor Keywords: has-patch fixed-5.0
Focuses: Cc:

Description

The meta box form is intended to be submitted when the post is saved, it shouldn't be submitted by pressing Enter whilst inside the form.

Attachments (1)

45284.diff (668 bytes) - added by pento 6 years ago.

Download all attachments as: .zip

Change History (4)

@pento
6 years ago

#1 @pento
6 years ago

In 43880:

Block Editor: Prevent the meta box form from being accidentally submitted.

Meta boxes are loaded inside a wrapper form, that the block editor submits as part of the saving process. It shouldn't be submitted manually.

See #45284.

#2 @pento
6 years ago

  • Keywords fixed-5.0 added

#3 @SergeyBiryukov
6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 44240:

Block Editor: Prevent the meta box form from being accidentally submitted.

Meta boxes are loaded inside a wrapper form, that the block editor submits as part of the saving process. It shouldn't be submitted manually.

Props pento.
Merges [43880] to trunk.
Fixes #45284.

Note: See TracTickets for help on using tickets.