I have a useOnClickOutside function that works well when used on one element in a page, but that triggers all the time when used with several elements in a same page.