Skip to content

Commit 297918e

Browse files
committed
fixup! fix(autocomplete): max_results option is not passed to parent
1 parent 7fac23a commit 297918e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Autocomplete/src/Form/AutocompleteEntityTypeSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function preSetData(FormEvent $event)
4343
// pass to AutocompleteChoiceTypeExtension
4444
$options['autocomplete'] = true;
4545
$options['autocomplete_url'] = $this->autocompleteUrl;
46-
unset($options['searchable_fields'], $options['security'], $options['filter_query'], $options['max_results']);
46+
unset($options['searchable_fields'], $options['security'], $options['filter_query']);
4747

4848
$form->add('autocomplete', EntityType::class, $options);
4949
}

0 commit comments

Comments
 (0)