]> cat aescling's git repositories - mastodon.git/commit
Improve focus handling with dropdown menus (#11511)
authorThibG <thib@sitedethib.com>
Wed, 7 Aug 2019 11:58:53 +0000 (13:58 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 7 Aug 2019 11:58:53 +0000 (13:58 +0200)
commit396b8cdd0f071fab85b09855f882b19c07cccd44
treea6d7f528512b7b03e8174f76d3d7a977e78f4283
parentac33f1aedd9a6c72c6c176afb1f5d62a1ce5d44d
Improve focus handling with dropdown menus (#11511)

- Focus first item when activated via keyboard
- When the dropdown menu closes, give back the focus to
  the actual element which was focused prior to opening the menu
app/javascript/mastodon/components/dropdown_menu.js
app/javascript/mastodon/components/icon_button.js