diff options
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_core.js')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js index 81d534cb8..2a901006b 100644 --- a/tests/unit/autocomplete/autocomplete_core.js +++ b/tests/unit/autocomplete/autocomplete_core.js @@ -154,7 +154,7 @@ test( "allow form submit on enter when menu is not active", function() { delay: 0, minLength: 0 }); - element.on( "keypress", function( e ) { + element.bind( "keypress", function( e ) { didMove = !e.isDefaultPrevented(); }); element.simulate( "keydown", { keyCode: ( isKeyUp ? $.ui.keyCode.UP : $.ui.keyCode.DOWN ) } ); |