mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
Fix double fadein for post stream (#2300)
This commit is contained in:
parent
83cfb331c2
commit
8d21f6f074
|
@ -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');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user