Reverse order in showMenuElement for readability.
This commit is contained in:
parent
6dfab7f88b
commit
8349782f7f
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue