File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export default class Keyframes extends React.Component {
7676 const frameNum = this . state . frameNum + 1 ;
7777 const loopNum = this . state . loopNum + 1 ;
7878 if ( this . props . children . length <= frameNum ) {
79- if ( this . props . loop === true || this . props . loop == 'infinite' || loopNum < this . props . loop ) {
79+ if ( this . props . loop === true || this . props . loop === 'infinite' || loopNum < this . props . loop ) {
8080 this . setState ( {
8181 frameNum : 0 ,
8282 loopNum
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ test('Infinite loop', (t) => {
9494 const onStart = ( ) => onStart . called = true ;
9595 const onEnd = ( ) => onEnd . called = true ;
9696 render (
97- < Keyframes onStart = { onStart } onEnd = { onEnd } loop = { true } >
97+ < Keyframes onStart = { onStart } onEnd = { onEnd } loop >
9898 < Frame duration = { 100 } > foo</ Frame >
9999 < Frame duration = { 100 } > bar</ Frame >
100100 </ Keyframes > ,
You can’t perform that action at this time.
0 commit comments