From 37df7fef764128d3f7f2e5824a43fc20a6ca3674 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Tue, 26 Mar 2024 17:20:03 +0100 Subject: [PATCH] Allow to clear taxon, product and variant selection One might want to clear the selected taxon, product or variant in an element. --- app/assets/javascripts/alchemy/solidus/admin/select2_config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/alchemy/solidus/admin/select2_config.js b/app/assets/javascripts/alchemy/solidus/admin/select2_config.js index 7e6d1b1..628a3d5 100644 --- a/app/assets/javascripts/alchemy/solidus/admin/select2_config.js +++ b/app/assets/javascripts/alchemy/solidus/admin/select2_config.js @@ -9,6 +9,7 @@ Alchemy.Solidus.getSelect2Config = function (options) { return { placeholder: options.placeholder, minimumInputLength: 3, + allowClear: true, initSelection: options.initSelection || function (_$el, callback) {