Skip to content

Commit 2aa254b

Browse files
author
Dominic Tubach
committed
Fix ensure value callbacks get correct input on array item remove
1 parent 4445256 commit 2aa254b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Control/Callbacks/ArrayCallbacks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function removeItem(array &$form, FormStateInterface $formState):
146146
Assertion::integer($pos);
147147
$indexToRemove = (int) substr($name, $pos + 1);
148148

149-
$formInput = $formState->getUserInput();
149+
$formInput = &$formState->getUserInput();
150150
$arrayInput = &NestedArray::getValue($formInput, $propertyPath);
151151
if (is_array($arrayInput)) {
152152
// Update input so value callbacks get the correct values.

0 commit comments

Comments
 (0)