Bug in keyboard navigation

There seems to be a bug when navigating our calendar home page via keyboard. When you open any of the filters like cateogry using enter it selects the first item in the list. Commenting our calendar-custom.js does fix this but you can no longer select or unselect any of the the options. Is anyone else seeing something similar?

Hey Emma,

I think this may be because the keydown action is mistakenly getting passed through into the interior of that filter element in your theme’s functions.js?

If you find this section of the functions.js JavaScript:

// if clicking or pressing return key
if ( e.type == 'click' || e.type == 'keydown' && e.which == 13 ) { 

And add a
e.preventDefault();
afterwards, see if that help?

You could also try
e.stopPropagation();
to prevent it from bubbling upwards.

See if one or both of those does the trick, and if not let us know; thanks!

Thanks Karl! Unfortunately neither of those made any difference.