diff --git a/src/features/compose/components/compose-form.tsx b/src/features/compose/components/compose-form.tsx index b236695a9..d68626efc 100644 --- a/src/features/compose/components/compose-form.tsx +++ b/src/features/compose/components/compose-form.tsx @@ -127,7 +127,7 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab // List of elements that shouldn't collapse the composer when clicked // FIXME: Make this less brittle getClickableArea(), - document.querySelector('.privacy-dropdown__dropdown'), + document.getElementById('privacy-dropdown'), document.querySelector('em-emoji-picker'), document.getElementById('modal-overlay'), ].some(element => element?.contains(e.target as any)); diff --git a/src/features/compose/components/privacy-dropdown.tsx b/src/features/compose/components/privacy-dropdown.tsx index 360bc2345..7b77ab035 100644 --- a/src/features/compose/components/privacy-dropdown.tsx +++ b/src/features/compose/components/privacy-dropdown.tsx @@ -126,7 +126,7 @@ const PrivacyDropdownMenu: React.FC = ({ style, items, pla // It should not be transformed when mounting because the resulting // size will be used to determine the coordinate of the menu by // react-overlays -
+
{items.map(item => (