1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 00:01:17 +02:00

Fix double fadein for post stream (#2300)

This commit is contained in:
Alexander Skvortsov
2020-09-23 23:04:56 -04:00
committed by GitHub
parent 83cfb331c2
commit 8d21f6f074

View File

@@ -368,6 +368,10 @@ export default class PostStream extends Component {
* @param {jQuery} $item * @param {jQuery} $item
*/ */
flashItem($item) { flashItem($item) {
$item.addClass('flash').one('animationend webkitAnimationEnd', () => $item.removeClass('flash')); $item.addClass('flash').on('animationend webkitAnimationEnd', (e) => {
if (e.animationName === 'fadeIn') {
$item.removeClass('flash');
}
});
} }
} }