From 2e08cff9eef026759163a7ce8c8e7523b673a4da Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Fri, 25 Feb 2022 09:39:39 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B04582=20Align=20backspace=20behavior=20in?= =?UTF-8?q?=20selectize=20widgets=20with=20jQuery=20autocomplete=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/backoffice/components/input/_input-select.scss | 2 ++ js/extkeywidget.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/css/backoffice/components/input/_input-select.scss b/css/backoffice/components/input/_input-select.scss index 223f1cad3..b21158340 100644 --- a/css/backoffice/components/input/_input-select.scss +++ b/css/backoffice/components/input/_input-select.scss @@ -64,6 +64,8 @@ $ibo-input-select--autocomplete-item-image--border: 1px solid $ibo-color-grey-60 color: inherit; border-color: $ibo-color-white-100; padding-left: $ibo-input-select--padding-x; + + @extend %ibo-font-ral-nor-150; } > [data-value] { diff --git a/js/extkeywidget.js b/js/extkeywidget.js index 713a40e0c..f51f5a21c 100644 --- a/js/extkeywidget.js +++ b/js/extkeywidget.js @@ -25,8 +25,10 @@ Selectize.define('custom_itop', function(aOptions) { if (this.$control_input.val() === '' && !this.$activeItems.length) { iIndex = this.caretPos-1; if (iIndex >= 0 && iIndex < this.items.length) { + let sPreviousValue = this.options[this.items[iIndex]].label; this.clear(true); e.preventDefault(); + this.setTextboxValue(sPreviousValue.slice(0, -1)); return; } }