diff --git a/ts/Common/ShareSelection.tsx b/ts/Common/ShareSelection.tsx index 73ed371..9c1bc92 100644 --- a/ts/Common/ShareSelection.tsx +++ b/ts/Common/ShareSelection.tsx @@ -48,9 +48,13 @@ const ShareSelection: React.FC = (props) => { }, []); useEffect(() => { - setTimeout(() => setShowSearchResults(hasFocus), 100); + setShowSearchResults(hasFocus); }, [hasFocus]); + function preventOnBlurEvent(ev: React.MouseEvent) { + ev.preventDefault(); + } + async function selectShare(share: ShareWithOption) { props.selectShare(share); @@ -65,9 +69,14 @@ const ShareSelection: React.FC = (props) => { ] : []; const renderOption = (option: ShareWithOption) => { - return (
  • selectShare(option)}> - {option.label}{option.value.shareType === ShareType.Group ? ` (${t('bbb', 'Group')})` : ''} -
  • ); + return ( +
  • selectShare(option)}> + {option.label}{option.value.shareType === ShareType.Group ? ` (${t('bbb', 'Group')})` : ''} +
  • ); }; return (