treeloom-components
    Preparing search index...

    Function makeFocusout

    • focusout on the whole typeahead: close the list once focus leaves it (moving between the input and the list keeps it open). One exception, for Safari: the input losing focus to nowhere during a press on the list (Safari does not focus a clicked select). That only counts once, and only from the input: a press which never ended on the list (dragged off it) cannot keep it open when the list itself loses focus later.

      Parameters

      Returns (event: Event) => void