Commit 8349782f authored by Bryce Johnson's avatar Bryce Johnson

Reverse order in showMenuElement for readability.

parent 6dfab7f8
......@@ -541,12 +541,12 @@ class AwardsHandler {
* the menu being opened and closed. */
showMenuElement($emojiMenu) {
$emojiMenu.addClass(IS_RENDERED);
// enqueues animation as a microtask, so it begins ASAP once IS_RENDERED added
Promise.resolve().then(() => { // eslint-disable-line promise/catch-or-return
$emojiMenu.addClass(IS_VISIBLE);
});
$emojiMenu.addClass(IS_RENDERED);
}
hideMenuElement($emojiMenu) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment