From 3be6e26e84c35009c691d476db376954537299e1 Mon Sep 17 00:00:00 2001 From: Ruben van Erk Date: Thu, 16 Jul 2020 11:26:49 +0200 Subject: [PATCH] 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. --- modules/system/assets/ui/js/select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/ui/js/select.js b/modules/system/assets/ui/js/select.js index f21be2020..798a8732d 100644 --- a/modules/system/assets/ui/js/select.js +++ b/modules/system/assets/ui/js/select.js @@ -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() {