Clear input after creating tag (#5053)

When using the taglist field type, the input isn't cleared after a tag has been created. This problem is described here: https://github.com/select2/select2/issues/4698
This change fixes that issue.
This commit is contained in:
Ruben van Erk 2020-07-16 11:26:49 +02:00 committed by GitHub
parent 745bdf9022
commit 3be6e26e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@
*/
if ($element.hasClass('select-no-dropdown')) {
extraOptions.selectOnClose = true
extraOptions.closeOnSelect = false
extraOptions.closeOnSelect = true
extraOptions.minimumInputLength = 1
$element.on('select2:closing', function() {