Auto-Complete stops search from working

2 replies · opened Jun 12, 2020

AAndrewHuntleyJun 12, 2020

I have got the search function working with my own cx code just fine.
However when I add the Auto-Complete functionality it prevents the search request from being submitted.
The same problem exists in the demo search-autocomplete.html.

Please can you advise?

SSemicolon WebSTAFFJun 13, 2020

Hello,

Apologies about the Inconveniences caused!

This appears to be an issue with the TypeAhead Plugin. To fix this, consider using the following JS code at the bottom of the Page:


$('.typeahead').on( 'keyup' , function(event) {
	if (event.keyCode === 13) {
		event.preventDefault();
		$('.typeahead').parents('form').submit();
	}
});

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

AAndrewHuntleyJun 17, 2020

Perfect, thank you!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard