提交 8349782f 编写于 作者: B Bryce Johnson

Reverse order in showMenuElement for readability.

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册