@@ -225,10 +225,10 @@ class QueueAnim extends React.Component {
225
225
226
226
enterBegin ( key , elements ) {
227
227
elements . forEach ( ( elem ) => {
228
+ elem . className += ( ' ' + this . props . animatingClassName [ 0 ] ) ;
228
229
const currentClassName = this . props . animatingClassName [ 1 ] ;
229
- const reg = new RegExp ( currentClassName , 'ig ' ) ;
230
+ const reg = new RegExp ( currentClassName , 'g ' ) ;
230
231
elem . className = elem . className . replace ( reg , '' ) ;
231
- elem . className += ( ' ' + this . props . animatingClassName [ 0 ] ) ;
232
232
} ) ;
233
233
}
234
234
@@ -238,17 +238,17 @@ class QueueAnim extends React.Component {
238
238
}
239
239
elements . forEach ( ( elem ) => {
240
240
const currentClassName = this . props . animatingClassName [ 0 ] ;
241
- const reg = new RegExp ( currentClassName , 'ig ' ) ;
241
+ const reg = new RegExp ( currentClassName , 'g ' ) ;
242
242
elem . className = elem . className . replace ( reg , '' ) . trim ( ) ;
243
243
} ) ;
244
244
}
245
245
246
246
leaveBegin ( elements ) {
247
247
elements . forEach ( ( elem ) => {
248
+ elem . className += ( ' ' + this . props . animatingClassName [ 1 ] ) ;
248
249
const currentClassName = this . props . animatingClassName [ 0 ] ;
249
- const reg = new RegExp ( currentClassName , 'ig ' ) ;
250
+ const reg = new RegExp ( currentClassName , 'g ' ) ;
250
251
elem . className = elem . className . replace ( reg , '' ) ;
251
- elem . className += ( ' ' + this . props . animatingClassName [ 1 ] ) ;
252
252
} ) ;
253
253
}
254
254
@@ -272,7 +272,7 @@ class QueueAnim extends React.Component {
272
272
}
273
273
elements . forEach ( ( elem ) => {
274
274
const currentClassName = this . props . animatingClassName [ 1 ] ;
275
- const reg = new RegExp ( currentClassName , 'ig ' ) ;
275
+ const reg = new RegExp ( currentClassName , 'g ' ) ;
276
276
elem . className = elem . className . replace ( reg , '' ) . trim ( ) ;
277
277
} ) ;
278
278
}
0 commit comments