handleDocumentClick = e => {
	if (e.target !== resultsElement && e.target !== searchInput) {
		clearSearchResults(true);
	}
}
Handles the document click event to clear search results if the user clicks outside of the search input or results element.
@param {MouseEvent} e - The event object representing the click event.
@returns {void} - This function does not return any value. It directly interacts with the UI by clearing search results.