Skip to content

Commit

Permalink
Update default behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
micbis committed Nov 14, 2024
1 parent c165317 commit 32ea4ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ const Admin = {
allowClearEnabled = false;
}

if (select.attr('data-sonata-select2-allow-tags') === 'false') {
allowTags = false;
} else {
if (select.attr('data-sonata-select2-allow-tags') === 'true') {
allowTags = true;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/recipe_select2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ to enable ``allowTags``::

.. note::

You have to use false as string! ``"false"``!
You have to use true as string! ``"true"``!

Minimum results for search
--------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/app.js

Large diffs are not rendered by default.

0 comments on commit 32ea4ce

Please sign in to comment.