File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ class AutoComplete {
111111 this . _Select ( liActive ) ;
112112 this . DOMResults . setAttribute ( "class" , "autocomplete" ) ;
113113 }
114+
115+ // Cancel form send only if results element is open
116+ event . preventDefault ( ) ;
114117 }
115118 } ,
116119 Operator : ConditionOperator . AND
@@ -426,7 +429,7 @@ class AutoComplete {
426429
427430 params . Input . addEventListener ( "focus" , params . _Focus . bind ( params ) ) ;
428431
429- params . Input . addEventListener ( "keyup " , AutoComplete . prototype . event . bind ( null , params ) ) ;
432+ params . Input . addEventListener ( "keydown " , AutoComplete . prototype . event . bind ( null , params ) ) ;
430433
431434 params . Input . addEventListener ( "blur" , params . _Blur . bind ( params ) ) ;
432435 params . Input . addEventListener ( "position" , params . _Position . bind ( params ) ) ;
You can’t perform that action at this time.
0 commit comments