about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>2022-12-15 17:38:50 +0100
committerGitHub <noreply@github.com>2022-12-15 17:38:50 +0100
commit726c7dea31d2ee60b327afd327e945e3ece09ac4 (patch)
treeb55b52ec4680d4855ad56532594a0463a9262290
parentff414a5489fd2c6d154b18effca24dde54d92958 (diff)
Display search popout at fixed screen position (#16463)
* Display search popout at fixed screen position

* Attach search popout to search box
-rw-r--r--app/javascript/mastodon/features/compose/components/search.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/compose/components/search.js b/app/javascript/mastodon/features/compose/components/search.js
index 03e6dcf2c..8254fb607 100644
--- a/app/javascript/mastodon/features/compose/components/search.js
+++ b/app/javascript/mastodon/features/compose/components/search.js
@@ -140,8 +140,7 @@ class Search extends React.PureComponent {
           <Icon id='search' className={hasValue ? '' : 'active'} />
           <Icon id='times-circle' className={hasValue ? 'active' : ''} aria-label={intl.formatMessage(messages.placeholder)} />
         </div>
-
-        <Overlay show={expanded && !hasValue} placement='bottom' target={this}>
+        <Overlay show={expanded && !hasValue} placement='bottom' target={this} container={this}>
           <SearchPopout />
         </Overlay>
       </div>