Skip to content

Commit

Permalink
Fix selector used to allow clearing non-required fields. (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsiciarz authored and jpic committed Jun 26, 2017
1 parent 22d68c8 commit 1eb0f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dal_select2/static/autocomplete_light/select2.js
Expand Up @@ -104,7 +104,7 @@
debug: true,
placeholder: '',
minimumInputLength: 0,
allowClear: ! $(this).is('required'),
allowClear: ! $(this).is('[required]'),
templateResult: template,
templateSelection: template,
ajax: ajax,
Expand Down

0 comments on commit 1eb0f0e

Please sign in to comment.