Archived topic
Close Navigation Search when it loses focus
1 reply · Started by David R on October 6, 2022
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.