Site logo

Archived topic

Close Navigation Search when it loses focus

1 reply · Started by David R on October 6, 2022

Viewing posts 1–2 of 2

Of course, clicking the X closes the search box, and so does hitting the Escape key. Is there a simple solution in place for causing the search to close upon losing focus?

In a similar vein, it seems reasonable to have the contents of the search box cleared when it closes as well.

Hi David R,

By default, the Off canvas panel should close when you click outside the panel.

You'll need custom JS code to automatically close the Off canvas when out of focus.

Then same applies for the Search functionality - you'd need custom JS code.

This archived topic is closed to new replies.