Skip to content

Commit 7c1d0da

Browse files
committed
minor #475 [Autocomplete] Doc: emphasizing that no options should be passed dire… (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [Autocomplete] Doc: emphasizing that no options should be passed dire… | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | Fixes #474 | License | MIT Commits ------- 493427d [Autocomplete] Doc: emphasizing that no options should be passed directly to the field
2 parents 20a6d4f + 493427d commit 7c1d0da

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Autocomplete/src/Resources/doc/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,11 @@ After creating this class, use it in your form:
156156
}
157157
}
158158
159-
For consistent results, avoid passing any options to the 3rd argument
160-
of the ``->add()`` method. Instead, include all options inside the
161-
custom class (``FoodAutocompleteField``).
159+
.. caution::
160+
161+
Avoid passing any options to the 3rd argument of the ``->add()`` method as
162+
these won't be used during the Ajax call to fetch results. Instead, include
163+
all options inside the custom class (``FoodAutocompleteField``).
162164

163165
Congratulations! Your ``EntityType`` is now Ajax-powered!
164166

0 commit comments

Comments
 (0)