diff --git a/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js b/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js index 9621f1fec2..c0c8bf240b 100644 --- a/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js +++ b/src/bundle/Resources/public/js/scripts/sidebar/instant.filter.js @@ -39,6 +39,15 @@ filterInput.addEventListener('change', filterItems.bind(filter, itemsMap, groups), false); filterInput.addEventListener('blur', filterItems.bind(filter, itemsMap, groups), false); filterInput.addEventListener('keyup', filterItems.bind(filter, itemsMap, groups), false); + filterInput.addEventListener( + 'keydown', + (event) => { + if (event.key === 'Enter') { + event.preventDefault(); + } + }, + false, + ); }; filters.forEach(initFilter);