mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix double fadein for post stream (#2300)
This commit is contained in:
parent
f4449e962d
commit
6e9db779cd
|
@ -368,6 +368,10 @@ export default class PostStream extends Component {
|
|||
* @param {jQuery} $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');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user