WordPress.org

Make WordPress Core

#45284 closed defect (bug) (fixed)

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

Reported by: pento Owned by: 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 20 months ago.

Download all attachments as: .zip

Change History (4)

@pento
20 months ago

#1 @pento
20 months 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
20 months ago

  • Keywords fixed-5.0 added

#3 @SergeyBiryukov
19 months 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.