Skip to content

Commit

Permalink
Prevent a flash in case that the component is initially rendered as e…
Browse files Browse the repository at this point in the history
…xpanded
  • Loading branch information
LiborOl committed Jan 17, 2018
1 parent e1b7c85 commit c208681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AnimakitExpander.es6
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class AnimakitExpander extends Component {
this.state = {
animation: false,
prepare: false,
expanded: false,
expanded: !!props.expanded,

size: 0,

Expand Down

0 comments on commit c208681

Please sign in to comment.