]> cat aescling's git repositories - mastodon.git/commit
Fix page incorrectly scrolling when bringing up dropdown menus (#13574)
authorThibG <thib@sitedethib.com>
Tue, 28 Apr 2020 11:19:39 +0000 (13:19 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Apr 2020 11:19:39 +0000 (13:19 +0200)
commit77ec0875ea998072f4bb709bfb9b15e80669eeef
tree26d089ff3ef3590d720b3dd7e7b826805f9667c6
parentf70a54b34cf892fc919c7c304b35bcc360311999
Fix page incorrectly scrolling when bringing up dropdown menus (#13574)

Fixes #13573

For some reason (I suspect this may be related to focusing the item before it
got drown by the browser), Firefox scrolls to top when bringing up dropdown
menus with pre-selected items.

This commit uses the “preventScroll” option as, due to the placement behavior,
the menu should be visible anyway and not trigger scrolling.
app/javascript/mastodon/components/dropdown_menu.js
app/javascript/mastodon/features/compose/components/privacy_dropdown.js