Skip to content

Commit 86e571c

Browse files
committed
minor #2348 [Autocomplete][Doc] Mention preload can be set to false (MatTheCat)
This PR was merged into the 2.x branch. Discussion ---------- [Autocomplete][Doc] Mention `preload` can be set to `false` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | N/A | License | MIT Setting `preload` to `false` is useful when you only want to display search results; that way nothing is loaded on focus. Commits ------- 4feaeb0 [Autocomplete][Doc] Mention `preload` can be set to `false`
2 parents 33d1c8d + 4feaeb0 commit 86e571c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Autocomplete/doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ to the options above, you can also pass:
272272
``preload`` (default: ``focus``)
273273
Set to ``focus`` to call the ``load`` function when control receives focus.
274274
Set to ``true`` to call the ``load`` upon control initialization (with an empty search).
275+
Set to ``false`` not to call the ``load`` function when control receives focus.
275276

276277
``extra_options`` (default ``[]``)
277278
Allow you to pass extra options for Ajax-based autocomplete fields.

0 commit comments

Comments
 (0)