Skip to content

Commit cc3d154

Browse files
committed
Fix JqueryAutocompleteEntityAjaxType: jQuery "keyup" event is used instead of "change" event (because when user selects value, "change" event is called and the value is cleared)
1 parent 0a76ad4 commit cc3d154

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/views/Form/fields.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<script type="text/javascript">
3939
$(function() {
4040
$("#{{ form.children.text.vars.id }}").unbind();
41-
$("#{{ form.children.text.vars.id }}").bind("change", function(){
41+
$("#{{ form.children.text.vars.id }}").bind("keyup", function(){
4242
$("#{{ form.children.key.vars.id }}").val('');
4343
$("#image_{{id}}").hide();
4444
});

0 commit comments

Comments
 (0)