// Prevent enter key event propagation for search input
This commit is contained in:
@@ -45,6 +45,12 @@
|
||||
valueKey: 'name',
|
||||
local: [{$typeahead_source}]
|
||||
});
|
||||
|
||||
$("#{$id}").keypress(function( event ) {
|
||||
if ( event.which == 13 ) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user