Skip to content

Commit 05f1fc3

Browse files
committed
tweak comment to indicate flow version with submitter support
1 parent beb769f commit 05f1fc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-dom-bindings/src/events/plugins/FormActionEventPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function extractEvents(
105105
if (didCurrentEventScheduleTransition()) {
106106
// We're going to set the pending form status, but because the submission
107107
// was prevented, we should not fire the action function.
108-
// $FlowExpectedError[extra-arg]: flow doesn't know about the 'submitter' parameter yet
108+
// $FlowExpectedError[extra-arg]: flow <0.237.0 doesn't know about the 'submitter' parameter
109109
const formData = new FormData(form, submitter);
110110
const pendingState: FormStatus = {
111111
pending: true,
@@ -135,7 +135,7 @@ function extractEvents(
135135
event.preventDefault();
136136

137137
// Dispatch the action and set a pending form status.
138-
// $FlowExpectedError[extra-arg]: flow doesn't know about the 'submitter' parameter yet
138+
// $FlowExpectedError[extra-arg]: flow <0.237.0 doesn't know about the 'submitter' parameter
139139
const formData = new FormData(form, submitter);
140140
const pendingState: FormStatus = {
141141
pending: true,

0 commit comments

Comments
 (0)