|
@ -99,6 +99,7 @@ $.onmount('[data-js-autocomplete-input]', function() { |
|
|
break; |
|
|
break; |
|
|
case 'Backspace': |
|
|
case 'Backspace': |
|
|
if ($(this).val() === '') { |
|
|
if ($(this).val() === '') { |
|
|
|
|
|
event.preventDefault(); |
|
|
var $autocompleteContainer = $(this).parents('[data-js-autocomplete-container]').first(); |
|
|
var $autocompleteContainer = $(this).parents('[data-js-autocomplete-container]').first(); |
|
|
var $chips = $autocompleteContainer.find('[data-js-autocomplete-chips]').first(); |
|
|
var $chips = $autocompleteContainer.find('[data-js-autocomplete-chips]').first(); |
|
|
var $tagsHiddenInput = $("[data-js-autocomplete-hidden-input]"); |
|
|
var $tagsHiddenInput = $("[data-js-autocomplete-hidden-input]"); |
|
|